Back again...
So i it and this code works:
'"name":"Edit"' => '"name":"Bearbeiten"',
works fine - just the menuitems are changed and the links to the files which include "Edit" in the filename stay intact.
In case of "Move" its dfferent - i huess i have to work out how the class, which is necessary for the move action, can be added...
---
Right now i saw that you have changed your previous post and suggested exact the same codefragment which i took - but as i said: for "Move" i have to add the class somehow.
Not so easy with JSON - i have no experience with that - but really great that you find time to help me. Thanks a lot!
---
So almost everything which is important for the moment is translated now - just a few notices "success-messages and error-messages" have to be edited.
If there is a possibility to solve that "Move" problem would be nice - if not, i have to teach my clients what means "Move" ;-) - but i did not expect that there would be just a quick workaround so i am very happy right now!
---
Ok, so i sorted this out:
Even if i use the JSON code fragments in the LanguageTranslator.module, there are still some classes added which use the new word which was generated with str_replace.
<li class="PageListActionBearbeiten"> (prev. PageListActionEdit)
<li class="PageListActionAnschauen"> (prev. PageListActionView)
<li class="PageListActionNeu"> (prev. PageListActionNew)
<li class="PageListActionBewegen"> (prev. PageListActionMove)
In case of "Edit", "View" and "New" this class seems just to be added but is not used later for styling or with jQuery, in case of "Move" it is used in ProcessPageList.js:
$("a.PageListPage", $ul).click(clickChild);
$(".PageListActionMove a", $ul).click(clickMove);
$(".PageListActionSelect a", $ul).click(clickSelect);
$(".PageListTriggerOpen a.PageListPage", $ul).click();
So for this moment i just have to change this one little thing in the core ("PageListActionMove" to "PageListActionBewegen") - not too much work to change this again after an update, i guess. Although of course i would like to avoid changing something in the core - but to manage that thing with the "Move" trigger i guess there is no way to avoid this...
If this can be solved via hook - please tell me.
So for the moment i have something like a localized PW which i can use for my clients' sites - and i am looking forward to see how PW will get a localization in future releases - will be littly tricky i guess, because one have to take care about JSON. But i am sure you will do a great job!
[Edited by Adam] I glued four of your posts together