Great to ear!! :-)
> The only thing id like to change is the default
> language to german (which i cannot choose on the first site for some
> reason).
The reason you can not choose the German translation, is that we never
managed to complete it. So it is still in the repository, but it is
not enabled.
> In the strings folder there is a file for german but somehow
> im not able to activate it.
There are a few things to update in order to deploy a new translation
(listed below).
> I already edited the index.html
What did you change in the index.html file? This file is automatically
generated using the build script, and you should not need to manually
change it.
At the moment, we do not have a build script for the community edition
(due to lack of time to set it up), but you can find the tool we use,
with an almost identical setup on the reference code we distribute
each time we have a new release of the service:
- http://www.clipperz.com/reviewing_the_code/older_versions
> and the srings.js (in js\src\Clipperz\PM) but it didnt change anything.
Changes in the strings.js file are not reflected on the index.html
file until you don't run the build script. In fact, index.html does
not load any external resources; it is a self contained file.
> It would be great if someone could tell me how to solve this problem!
In order to test you changes, you can try to load the index_debug.html
file, instead of the index.html file. The debug version includes all
the relevant resources instead on incorporating them like the
non-debug version does.
So changes on the strings.js file should be visible when accessing the
index_debug.html file.
The list of changes you need to do are these:
# js/src/Clipperz/PM/Strings.js
On this file you have to do the following changes:
- line 88: remove the "/* -- */, disabled:true, cls:'disabledOption'
/* */" string.
- line 149: remove the comment in fron of the line: 'de': "de-de",
# index_debug.html
you need to add the following line after line 441:
<script type='text/javascript'
src='./js/src/Clipperz/PM/Strings/Strings_de-DE.js'></script>
# js/src/Clipperz/PM/Strings/Strings_de-DE.js
Fix this file with correct strings, and check for syntax errors, as
there may be some typos left.
Once you are satisfied with the outcome, you need to run the build
script on your code base, if you want to use the index.html file again
(loading the index_debut.html takes MUCH longer than loading the
compacted index.html file).
Hope this helps.
Best regards,
Giulio Cesare
As you have just see, there was a valid reason the German translation
was not live yet! ;-)
[...]
>>
>> What did you change in the index.html file? This file is automatically
>> generated using the build script, and you should not need to manually
>> change it.
>
> I changed
>
> {tag:"option",html:"German (Deutsch)",value:"de-
> DE",disabled:true,cls:"disabledOption"}
>
> to
>
> {tag:"option",html:"German (Deutsch)"}
>
> on line 27819 but this changed only the menu i think
Yep. And you have left out also the "value" parameter. So this would
have not worked anyway.
Giulio Cesare
at the moment we are pushing for any new translation, as we have
already started working on the new version of the application that
will require a completely different set of strings.
Anyway, if you feel comfortable working on the German translation
editing directly the Strings_de-DE.js file, we would really welcome
your updates.
Best regards,
Giulio Cesare