Ignore:
Timestamp:
2015-04-27T18:46:32+02:00 (10 years ago)
Author:
stoecker
Message:

fix handling of khmer a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java

    r8005 r8282  
    1818import org.openstreetmap.josm.Main;
    1919import org.openstreetmap.josm.gui.util.GuiHelper;
     20import org.openstreetmap.josm.tools.LanguageInfo;
    2021import org.openstreetmap.josm.tools.Utils;
    2122
     
    104105        ss.addRule("ol {margin-left: 1cm; margin-top: 0.1cm; margin-bottom: 0.2cm; list-style-type: decimal}");
    105106        ss.addRule("ul {margin-left: 1cm; margin-top: 0.1cm; margin-bottom: 0.2cm; list-style-type: disc}");
    106         if ("km".equals(Main.pref.get("language"))) {
     107        if ("km".equals(LanguageInfo.getJOSMLocaleCode())) {
    107108            // Fix rendering problem for Khmer script
    108109            ss.addRule("p {" + getFontRule(UIManager.getFont("Label.font")) + "}");
Note: See TracChangeset for help on using the changeset viewer.