Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGwtMessages

    hello

    I think there is a problem with the files:
    SmartGwtMessages_fr_FR.properties, SmartGwtMessages_fr.properties
    on the line 260 : relativeDateItem_todayTitle=Aujourd\'hui

    because I was compiling the following message:

    00:00:12,696 [TRACE] Generating method body for relativeDateItem_todayTitle()
    00:00:12,696 [ERROR] Unterminated single quote: Aujourd'hui
    java.text.ParseException: Unterminated single quote: Aujourd'hui
    at com.google.gwt.i18n.rebind.MessageFormatParser.parse(MessageFormatParser.java:233)
    at com.google.gwt.i18n.rebind.MessagesMethodCreator.generateString(MessagesMethodCreator.java:452)
    at com.google.gwt.i18n.rebind.MessagesMethodCreator.createMethodFor(MessagesMethodCreator.java:367)
    at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:313)
    at com.google.gwt.i18n.rebind.MessagesImplCreator.emitMethodBody(MessagesImplCreator.java:84)
    at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:265)
    at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:233)
    at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:116)
    at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:137)
    at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:121)
    at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:98)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:418)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:38)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:108)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:54
    ...

    thank you

    Solution ? : relativeDateItem_todayTitle=Aujourd\'\'hui

    #2
    Fixed in SVN, thanks.

    Comment


      #3
      Same issue:

      Code:
       [ERROR] Unterminated single quote: "s'identifier"
      [INFO] java.text.ParseException: Unterminated single quote: "s'identifier"
      [INFO] 	at com.google.gwt.i18n.rebind.MessageFormatParser.parse(MessageFormatParser.java:233)
      [INFO] 	at com.google.gwt.i18n.rebind.MessagesMethodCreator.generateString(MessagesMethodCreator.java:452)
      [INFO] 	at com.google.gwt.i18n.rebind.MessagesMethodCreator.createMethodFor(MessagesMethodCreator.java:367)
      with version 2.4

      Comment


        #4
        Which locale are you seeing this error with? There is no such translation in the Smart GWT resource bundles. Are you sure this is not one of your own translations? The issue is that the single quote in the string needs to be escaped as follows - s''identifier

        Originally posted by munger
        Same issue:

        Code:
         [ERROR] Unterminated single quote: "s'identifier"
        [INFO] java.text.ParseException: Unterminated single quote: "s'identifier"
        [INFO] 	at com.google.gwt.i18n.rebind.MessageFormatParser.parse(MessageFormatParser.java:233)
        [INFO] 	at com.google.gwt.i18n.rebind.MessagesMethodCreator.generateString(MessagesMethodCreator.java:452)
        [INFO] 	at com.google.gwt.i18n.rebind.MessagesMethodCreator.createMethodFor(MessagesMethodCreator.java:367)
        with version 2.4

        Comment


          #5
          Ok thanks, yes it is my translation file, but i've looked for escape character and wasn't able to find any working...
          Thanks

          Comment


            #6
            I haven't been able to find any character escape in order to print correctly 'é' on the screen, nor 'è' or 'à'.
            Do you have any clue please ?

            Comment


              #7
              any information on how to produce such characters ?
              thanks

              Comment

              Working...
              X