uDIG
  1. uDIG
  2. UDIG-1265

Udig is not working with Turkish language

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: UDIG 1.1.RC5, UDIG 1.1.RC6, UDIG 1.1.RC6a, UDIG 1.1.RC8, UDIG 1.1.RC9, UDIG 1.1.RC10
    • Fix Version/s: UDIG 1.2.M3
    • Labels:
      None
    • Environment:
      XP PRO TURKISH, JRE 1.5,

      Description

      In Turkey we use "." (dot) as thousand seperator not as "decimal" seperator. And we use "," comma as decimal seperator.

      When Windows XP Professional (Turkish) running with Turkish regional setting I am always getting the same error. I attached two screenshot about the problem.

      If I change regional settings from Turkish to English everything works fine.

      java.lang.ClassNotFoundException: net.refractions.udig.project.ui.internal.ProjectExplorer
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
      at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)
      at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
      at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
      at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:242)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:238)
      at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:69)
      at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:292)
      at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
      at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
      at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
      at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
      at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
      at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
      at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
      at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
      at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
      at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
      at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
      at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:601)
      at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:532)
      at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:562)
      at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:244)
      at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:815)
      at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2436)
      at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:2616)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2597)
      at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:658)
      at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:811)
      at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1453)
      at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1404)
      at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:190)
      at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:708)
      at org.eclipse.ui.internal.Workbench.init(Workbench.java:1101)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:41)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
      at org.eclipse.core.launcher.Main.run(Main.java:977)
      at org.eclipse.core.launcher.Main.main(Main.java:952)
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------
      java.lang.ClassNotFoundException: net.refractions.udig.project.ui.internal.LayersView
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:278)
      at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)
      at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
      at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
      at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:242)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:238)
      at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:69)
      at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:292)
      at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
      at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
      at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
      at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:525)
      at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
      at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
      at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
      at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:394)
      at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
      at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
      at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
      at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:601)
      at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:532)
      at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:562)
      at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:244)
      at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:815)
      at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2436)
      at org.eclipse.ui.internal.WorkbenchWindow$6.run(WorkbenchWindow.java:2616)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
      at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2597)
      at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:658)
      at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:811)
      at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1453)
      at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1404)
      at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:190)
      at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:708)
      at org.eclipse.ui.internal.Workbench.init(Workbench.java:1101)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at net.refractions.udig.internal.ui.UDIGApplication.run(UDIGApplication.java:41)
      at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
      at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
      at org.eclipse.core.launcher.Main.run(Main.java:977)
      at org.eclipse.core.launcher.Main.main(Main.java:952)

      1. log.txt
        708 kB
        Aydın KILIÇ
      1. screenshot.png
        73 kB
      2. screenshot2.png
        11 kB
      3. Turkish Scale.jpg
        140 kB

        Activity

        Hide
        Richard Gould added a comment -
        That is annoying. Are you able to attach the uDig log? (help->about->configuration->log)

        Or go help->send log and I'll post it.

        Thanks

        Richard
        Show
        Richard Gould added a comment - That is annoying. Are you able to attach the uDig log? (help->about->configuration->log) Or go help->send log and I'll post it. Thanks Richard
        Hide
        Aydın KILIÇ added a comment -
        UDig log file
        Show
        Aydın KILIÇ added a comment - UDig log file
        Hide
        Tankut Koray added a comment -
        Got the same problem, any solutions?

        Tankut
        Show
        Tankut Koray added a comment - Got the same problem, any solutions? Tankut
        Hide
        Tankut Koray added a comment -
        For RC14, I think I traced this bug to the gt2-brewer.jar which is inside libs.

        Here is how to patch that:
        In ColorBrewer.java
        1. Import java.util.Locale
        2. In line 297, change "toLowerCase()" to "toLowerCase(Locale.US)"

        But I think I should submit this patch to GeoTools or submitting here is sufficient?

        Tankut

        Show
        Tankut Koray added a comment - For RC14, I think I traced this bug to the gt2-brewer.jar which is inside libs. Here is how to patch that: In ColorBrewer.java 1. Import java.util.Locale 2. In line 297, change "toLowerCase()" to "toLowerCase(Locale.US)" But I think I should submit this patch to GeoTools or submitting here is sufficient? Tankut
        Hide
        Jody Garnett added a comment -
        I have applied this patch to geotools; we will need to verify it is fixed.
        Show
        Jody Garnett added a comment - I have applied this patch to geotools; we will need to verify it is fixed.
        Hide
        Jody Garnett added a comment -
        Patch was resolved and applied to GeoTools trunk; as such this issue should be fixed now. To test this issue we will need to run udig from the command line (or edit the udig.ini file) in order to sepcify: -nl tr


        Show
        Jody Garnett added a comment - Patch was resolved and applied to GeoTools trunk; as such this issue should be fixed now. To test this issue we will need to run udig from the command line (or edit the udig.ini file) in order to sepcify: -nl tr
        Hide
        Jody Garnett added a comment -
        I have changed my region and number formatting over to turkish at the operating system level. uDig starts up - and you can see it is respecting the number formatting give the 1:197.944.309 representation of scale in the above screen snap.

        The menus and so on are not changed as we have no Turkish translation at this time; and they are then defaulting to the english base language.
        Show
        Jody Garnett added a comment - I have changed my region and number formatting over to turkish at the operating system level. uDig starts up - and you can see it is respecting the number formatting give the 1:197.944.309 representation of scale in the above screen snap. The menus and so on are not changed as we have no Turkish translation at this time; and they are then defaulting to the english base language.
        Hide
        Jody Garnett added a comment -
        See attached screen snap; this issue is now resolved. I expect it was addressed during one of the udpates to eclipse.
        Show
        Jody Garnett added a comment - See attached screen snap; this issue is now resolved. I expect it was addressed during one of the udpates to eclipse.

          People

          • Assignee:
            Jody Garnett
            Reporter:
            Aydın KILIÇ
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: