3 Replies Latest reply on Dec 9, 2015 1:53 AM by Peter Spier

    FindKeyStrings does not return for certain languages

    shirlenelss

      I have used FindKeyStrings for get language keys and have no problems with european languages.

       

      I looped the LanguageWithVendors and used FindKeyStrings (language) to get the correct keys to construct XML for idml files and fail with uncommon languages like Gujarati (India), Bengali (India) etc

      My results default back to the languageWithVendor. name when fail.

      These are my results. Bolded a few so you can see the difference.

      Using Indesign_TLB version 5.5

       

       

       

      Debug Output: TestFindKeyStrings : [No Language]=>$ID/[No Language] Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Bengali (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Bengali (India)=>Bengali (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Gujarati (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Gujarati (India)=>Gujarati (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Hindi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Hindi (India)=>Hindi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Kannada (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Kannada (India)=>Kannada (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Malayalam (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Malayalam (India)=>Malayalam (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Marathi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Marathi (India)=>Marathi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Oriya (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Oriya (India)=>Oriya (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Punjabi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Punjabi (India)=>Punjabi (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Tamil (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Tamil (India)=>Tamil (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: GetLanguageKey failed for Telugu (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Telugu (India)=>Telugu (India) Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Bulgarian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Bulgarian=>$ID/Bulgarian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Catalan Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Catalan=>$ID/Catalan Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Czech Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Czech=>$ID/Czech Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Danish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Danish=>$ID/Danish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/German: Swiss Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : German: Swiss=>$ID/German: Swiss Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/de_CH_2006 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : German: Swiss 2006 Reform=>$ID/de_CH_2006 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/German: Reformed Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : German: 1996 Reform=>$ID/German: Reformed Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/de_DE_2006 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : German: 2006 Reform=>$ID/de_DE_2006 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Greek Mode Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Greek=>$ID/Greek Mode Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/English: Canadian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : English: Canadian=>$ID/English: Canadian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/English: UK Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : English: UK=>$ID/English: UK Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/English: USA Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : English: USA=>$ID/English: USA Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/English: USA Medical Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : English: USA Medical=>$ID/English: USA Medical Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Spanish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Spanish=>$ID/Spanish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Estonian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Estonian=>$ID/Estonian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Finnish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Finnish=>$ID/Finnish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/French: Canadian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : French: Canadian=>$ID/French: Canadian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/French Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : French=>$ID/French Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Croatian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Croatian=>$ID/Croatian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Hungarian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Hungarian=>$ID/Hungarian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Italian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Italian=>$ID/Italian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Lithuanian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Lithuanian=>$ID/Lithuanian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Latvian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Latvian=>$ID/Latvian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Norwegian: Bokmal Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Norwegian: Bokmål=>$ID/Norwegian: Bokmal Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Dutch Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Dutch: Old Rules=>$ID/Dutch Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/nl_NL_2005 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Dutch: 2005 Reform=>$ID/nl_NL_2005 Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Norwegian: Nynorsk Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Norwegian: Nynorsk=>$ID/Norwegian: Nynorsk Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Polish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Polish=>$ID/Polish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Portuguese: Brazilian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Portuguese: Brazilian=>$ID/Portuguese: Brazilian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Portuguese: Orthographic Agreement Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Portuguese: Orthographic Agreement=>$ID/Portuguese: Orthographic Agreement Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Portuguese Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Portuguese=>$ID/Portuguese Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Romanian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Romanian=>$ID/Romanian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Russian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Russian=>$ID/Russian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Slovak Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Slovak=>$ID/Slovak Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Slovenian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Slovenian=>$ID/Slovenian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Swedish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Swedish=>$ID/Swedish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Turkish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Turkish=>$ID/Turkish Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Ukrainian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Ukrainian=>$ID/Ukrainian Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/English: USA Legal Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : English: USA Legal=>$ID/English: USA Legal Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/German: Traditional Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : German: Old Rules=>$ID/German: Traditional Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/PlaceHolder_Hebrew Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Hebrew=>$ID/PlaceHolder_Hebrew Process IndesignCS55FilterTests.exe (73076)

      Debug Output: $ID/Arabic Process IndesignCS55FilterTests.exe (73076)

      Debug Output: TestFindKeyStrings : Arabic=>$ID/Arabic Process IndesignCS55FilterTests.exe (73076)

        • 1. Re: FindKeyStrings does not return for certain languages
          Peter Spier Most Valuable Participant (Moderator)

          You are not likely to find much help in this forum, but I don't know enough to move the post for you. I suspect that you'd be better off in the InDesign Scripting or InDesign SDK forum...

          • 2. Re: FindKeyStrings does not return for certain languages
            Laubender Adobe Community Professional & MVP

            I think, that the problems with some languages like Gujarati (India) are known bugs.

            At least I reported the following bug in May 2014 (not fixed yet). This was with ExtendScript:

             

            Missing or not-accessible non-local names for some languages


            Affected:

            InDesign CS6

            InDesign CC v9

            InDesign CC v10

             

            [Object LanguagesWithVendors]

            name

             

            For the property "name" of the following languages there are *no* $ID/ representations of their local strings available:

             

            International-English version:

             

            Bengali (India)

            Gujarati (India)

            Hindi (India)

            Kannada (India)

            Malayalam (India)

            Marathi (India)

            Oriya (India)

            Punjabi (India)

            Tamil (India)

            Telugu (India)

             

            German version:

             

            Bengalisch (Indien)

            Gujarati (Indien)

            Hindi (Indien)

            Kannada (Indien)

            Malayalam (Indie) *

            Marathi (Indien)

            Oriya (Indie) *

            Pandschabisch (Indien)

            Tamilisch (Indien)

            Telugu (Indien)

             

            * This is no typo from my side. The string should end with "(Indien)" and not "(Indie)".

             

            Workaround for the international version of InDesign:

            Use the value of the property icuLocaleName of that Indian language.

            Warning: This is not a workaround for local InDesign versions like eg. German, where different languages share the same icuLocaleName value.

             

            Btw. This issue is better discussed in the InDesign Scripting Forum.

             

            Uwe

            • 3. Re: FindKeyStrings does not return for certain languages
              Peter Spier Most Valuable Participant (Moderator)

              OK, I've moved it to scripting...