Translation Editor v1.3

Release Notes

1.3 (2013-04-05):
 

  • added: german translation (thanks to Originalhardy http://community.elgg.org/pg/profile/Originalhardy)
  • changed: internal function for better performance
  • changed: code cleanup and PHP warning fixes
  • changed: README.txt to README.md for GitHub
  • fixed: incorrect result in function
  • removed: some legacy code
  • How can i assign Translation Editors?

    I can not find this feature anywhere.

  • go to the profile of a user and from the admin menu (the red menu) select "make translation editor".

    this can also be done from the user icon dropdown.

  • Hi Jerome,

    I downloaded and installed this plugin, but I have problems with it.
    First, when I open the plugin page http://mysite.com/translation_editor/en, I see many strange characters:

    Translation Editor
    PKS�lB<�ËAP�en.phpUT >u?Q ӂQux74�}iw�r�g�W�q��>Jn��^_;II��H^���s|��������~}j�e��K�����꽺������f�����2�StR�&:��YZm��8_7��@���.^��gt���S��ԪYh����޾|�F�%��2޿��n��T�b��� �G�.S�x��š�J�܂g�:� ttQ��4M4������&��&Z�G��6 N�)ˢd��L�,�,��5�F{(��uf� �6fy��e�,Mb�:��*��$��}����lw��1�L��[��l�4�"����2��0Qi~kR��_�I�A/2�4,N���Khr^s���7����ۊ���5V�E��itYH)��/�4


    Second, obtaining a fatal error when I do translation:

    Redirect could not be issued due to headers already being sent. Halting execution for security. Search http://docs.elgg.org/ for more information.

    Please tell me where can be the problem.
    Thank you

  • i've had this installed on my site for 18+ months..
    at some point along the way i started seeing 'ajax loader' animation frames down the left side of the screen (and in the admin part of elgg) (black backgrounded frames with the white circular line style formation to act as a 'spinning' loader)..
    i previously tracked the loader down to being the fancybox loader graphic.
    now i am seeing that in elgg 1.8.16 that this collection of loader animation frames has returned and only ends when i disable translation editor 1.3.
    anyone have any ideas why this may be?
    thanks

  • update: this issue only occurs when the caching is disabled in elgg

  • @Stanley:  you may have plugins that were assembled on a Mac, therefore including a .DS_Store file in the plugin root directory. This file - I don't know why - kills Translation Editor. I thought for a long time that the plugin is seriously buggy, but not at all! DELETE EVERY instance of .DS_Store from any plugin, and TransEd will work!

  • Hi Jerome,

    This is a terrific plugin, thank you very much for this great work.

    I am concerned about the security. This is perhaps an stupid observation, Im not an Elgg expert.  I could access Translation Editor with a non-admin user, just writting down the URL in my browser (www.mysite.com/translation_editor).  Is that an expected behavior? Looking at the code, the page handler is always registered, regardless of the user.

    Thank you.

  • Hi Jerome,

    same as David above, the link is readable even if the user is not set as translator but can not save translations so it's still safe but not being even readable would be best I guess.

    Cheers

  • Mmmm maybe depending on the lack of roles in Elgg, right? Only admin or user to access contents...setting someone as translator simply blocks functions (like saving) right?

    Cheers

  • Last for today...but a suggestion hopefully useful for future releases if easy and quick to implement.

    Since many strings are backend, only for admins which usually speak or understand english, providing a "Paste all empty translations" (after selecting language and a specific plugin ie. MYSITE/translation_editor/it/core ) button would be a great enhancement.

    Why?

    Assuming english-speaking admins/webmasters, they could (I do it manually):

    1. translate all frontend strings only within each specific plugin
    2. hit the button "Paste all empty translations"
    3. see 100% plugin translated

    I do this because if I don't see 100% translated, at each plugin/core update I need to re-check, each time, all translations and strings and find the few new ones which thing takes a lot of time for big plugins.

    Also, being the great "equal" function already included, is already easy to immediately find the ones left in original language in case further translations are needed.

    Cheers

  • Neat! But I have a question. When all my plugins are translated can I disable the plugin or what does it write to?

  • @David F. Barrero

    I am concerned about the security. This is perhaps an stupid observation, Im not an Elgg expert.  I could access Translation Editor with a non-admin user, just writting down the URL in my browser (www.mysite.com/translation_editor).  Is that an expected behavior? Looking at the code, the page handler is always registered, regardless of the user.

    @Michele

    same as David above, the link is readable even if the user is not set as translator but can not save translations so it's still safe but not being even readable would be best I guess.

    I'll look into this

  • @Michele

    Since many strings are backend, only for admins which usually speak or understand english, providing a "Paste all empty translations" (after selecting language and a specific plugin ie. MYSITE/translation_editor/it/core ) button would be a great enhancement.

    Why?

    Assuming english-speaking admins/webmasters, they could (I do it manually):

    1. translate all frontend strings only within each specific plugin
    2. hit the button "Paste all empty translations"
    3. see 100% plugin translated

    I do this because if I don't see 100% translated, at each plugin/core update I need to re-check, each time, all translations and strings and find the few new ones which thing takes a lot of time for big plugins.

    Also, being the great "equal" function already included, is already easy to immediately find the ones left in original language in case further translations are needed.

    Maybe in a future version (https://github.com/ColdTrick/translation_editor/issues/5)

  • @Nefea

    But I have a question. When all my plugins are translated can I disable the plugin or what does it write to?

    After you're done translating everything you have two options

    1. leave the plugin enabled
    2. download the translation for each plugin and put the tranlation file in the correct folder (/mod/<plugin name>/languages
      After that you can disable the plugin

    All translations are stored in dataroot. This has the advantage that if you update a plugin/Elgg your translations aren't lost.
    This is mostly helpfull if you change existing keys to something else, for example "Friends" become "Contacts". If you update Elgg or a plugin all translations are still intact. If however you do option 2 you'll have to redo all translations (if you forgot to make a backup ;)

     

  • According to the translator I have 100% translated, but when I check language in the profile field only 77,58% is translated. I can also see on the site that not everything is translated.

  • @Jerome Bakker forgot to say thank you for considering my idea for future releases

    Cheers

    PS Humble but very convinced suggestion to community moderator: This community definitely needs at least Brett Profitt's mentions plugin and Matt Beckett's Comment Tracker, please! Otherwise we miss content we're interested in and we do not want to :)

  • Hello,

    Is it working on the 1.9.0-dev release ?

    Thx,

    Stephane.

  • @Stéphane C.

    Is it working on the 1.9.0-dev release ?

    If you use the latest GitHub release: YES ;)

  • I did it but I have a missing "start.php" file. What's wrong?

  • @Stéphane C.

    I did it but I have a missing "start.php" file. What's wrong?

    Did you rename the folder from the zip-file from "translation_editor-master" to "translation_editor"??

    I'll implement a check for this shortly

  • @Stéphane C.

    I did it but I have a missing "start.php" file. What's wrong?

    Then you uploaded it wrong ;) or the rights on the folder are incorrect so the webserver can't access them.

    I take it you checked that there IS a start.php file?

  • Yep. Rights of the folder were wrong. Sorry and thx for the reactivity.

Jerome Bakker

Developer @ ColdTrick IT Solutions

Stats

  • Category: Language packs
  • License: GNU General Public License (GPL) version 2
  • Updated: 2019-4-9
  • Downloads: 13915
  • Recommendations: 55

Other Projects

View Jerome Bakker's plugins