We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18878
    • 210 Posts
    Hello,

    I hope you can help me solve this problem (I guess this might be a question for Jeff - Bravado laugh).

    It happens only when my backend’s language is set to "Spanish". When editing a document, the text color picker should display the option "More Colors" translated to Spanish. Instead, it displays "Undefined" and when you click on it the tabs display the PHP variable names.

    Here a screenshot:




    Any ideas on how to solve this? Do you think it’s fixed with the last version 2.1.2?

    Your help will be appreciated.

    Mc
      • 18878
      • 210 Posts
      Hi,

      any ideas please? huh
        • 18878
        • 210 Posts
        Please, any help will be appreciated.
          • 6726
          • 7,075 Posts
          Best guess is, there are some missing strings in the TinyMCE language file
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 3663
            • 1 Posts
            Hi, I had the same problem after setting the language to German. Couldn’t find any missing strings in the language file though. However, as it turns out, there was a line saying "insert_link_delta_width : 50" at the end of the file, which prevented the language file from being processed. Deleting this line did the trick - now I have the correct descriptions and labels. Having a quick look in the Spanish language file shows me a similar line: "theme_advanced_anchor_delta_width : 20". Delete this and the comma at the end of the line before and you should get the correct translations.

            The problem that still persists though is that, when I click on the little arrow to open the colorchooser-dialog, I only get a "false" just below the textarea and a link saying "more colors" (correctly translated) at the bottom of my page. Only when I click on that link, the dialog opens where I can choose the color I want.

            Any suggestions on that?

            Thanks, Blynx
              • 18878
              • 210 Posts
              Quote from: Blynx at Oct 28, 2007, 02:10 PM

              Hi, I had the same problem after setting the language to German. Couldn’t find any missing strings in the language file though. However, as it turns out, there was a line saying "insert_link_delta_width : 50" at the end of the file, which prevented the language file from being processed. Deleting this line did the trick - now I have the correct descriptions and labels. Having a quick look in the Spanish language file shows me a similar line: "theme_advanced_anchor_delta_width : 20". Delete this and the comma at the end of the line before and you should get the correct translations.

              The problem that still persists though is that, when I click on the little arrow to open the colorchooser-dialog, I only get a "false" just below the textarea and a link saying "more colors" (correctly translated) at the bottom of my page. Only when I click on that link, the dialog opens where I can choose the color I want.

              Any suggestions on that?

              Thanks, Blynx

              Blynx,

              Thanks for the tip. I followed your instructions and edited the file for spanish translation located here:

              \assets\plugins\tinymce2111\jscripts\tiny_mce\themes\advanced\langs\es.js

              I deleted the line:
              theme_advanced_anchor_delta_width : 20 (and the comma at the end of the line before)

              Unfortunately it didn’t solve the problem. As shown in my previous screenshot, I still get "Undefined" instead of "More Colors" (translated to spanish). And when I click on "undefined" the tab names are still displaying the $lang variable names.

              Is there any other file we should edit?

              Thanks!

              Mc
                • 4018
                • 1,131 Posts
                Sorry about the delayed response on this. Will definitely look into this and will get back to you shortly. smiley

                Jeff
                  Jeff Whitfield

                  "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                  • 4018
                  • 1,131 Posts
                  Yep! Confirmed and duplicated the issue! Will work on a fix. Should hopefully have it out soon. I’m currently working on a site and need to get it out by the weekend so...worse comes to worse I’ll see if I can find a fix and push it out over the weekend. smiley

                  Jeff
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 18878
                    • 210 Posts
                    Quote from: Bravado at Nov 07, 2007, 11:18 PM

                    Yep! Confirmed and duplicated the issue! Will work on a fix. Should hopefully have it out soon. I’m currently working on a site and need to get it out by the weekend so...worse comes to worse I’ll see if I can find a fix and push it out over the weekend. smiley

                    Jeff

                    Thank you Jeff!
                      • 4018
                      • 1,131 Posts
                      Alright...so here’s the problem...

                      This is more of an issue with TinyMCE than anything else. I would highly recommend that you take a little time and go over to the MoxieCode site (http://tinymce.moxiecode.com/) and let them know that there are some issues with the Spanish language files. Might be a good time to find out who is responsible for the Spanish language files and perhaps offer up some help on keeping them up to date with the latest translations.

                      To fix the current issue with the language files associated with the color picker, the language files for the Style plugin will need to be updated. Look under the /jscripts/tiny_mce/plugins/style/langs directory and do a comparison between the en.js and es.js files. There’s about 4 or 5 variables that are missing from the es.js file that need to be added and translated. That should do the trick. smiley

                      Jeff
                        Jeff Whitfield

                        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."