How to activate another language

15 views
Skip to first unread message

themmm

unread,
Aug 8, 2008, 5:53:26 AM8/8/08
to Clipperz
Hi there!

I just installed clipperz succesfully on my webserver and it is really
running smoothly. The only thing id like to change is the default
language to german (which i cannot choose on the first site for some
reason). In the strings folder there is a file for german but somehow
im not able to activate it. I already edited the index.html and the
srings.js (in js\src\Clipperz\PM) but it didnt change anything.

It would be great if someone could tell me how to solve this problem!

THX
TheMMM

Giulio Cesare Solaroli

unread,
Aug 8, 2008, 6:13:44 AM8/8/08
to the...@gmail.com, Clipperz
On Fri, Aug 8, 2008 at 11:53 AM, themmm <the...@gmail.com> wrote:
>
> Hi there!
>
> I just installed clipperz succesfully on my webserver and it is really
> running smoothly.

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

themmm

unread,
Aug 8, 2008, 6:29:04 AM8/8/08
to Clipperz
Wow that "Tutorial" helped me a lot, thank you very much!

I tried it with the index_debug.html and it works quite good, but
there are really a lot of translations missing or a bit rubbish. I'll
work with the englisch version for now i think. Maybe i will find the
time to translate the complete Strings_de-DE.js in the near future.

THX
TheMMM

Giulio Cesare Solaroli schrieb:
> On Fri, Aug 8, 2008 at 11:53 AM, themmm <the...@gmail.com> wrote:
> >
> > Hi there!
> >
> > I just installed clipperz succesfully on my webserver and it is really
> > running smoothly.
>
> 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.

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

Giulio Cesare Solaroli

unread,
Aug 8, 2008, 6:43:07 AM8/8/08
to the...@gmail.com, Clipperz
On Fri, Aug 8, 2008 at 12:29 PM, themmm <the...@gmail.com> wrote:
>
> Wow that "Tutorial" helped me a lot, thank you very much!
>
> I tried it with the index_debug.html and it works quite good, but
> there are really a lot of translations missing or a bit rubbish. I'll
> work with the englisch version for now i think. Maybe i will find the
> time to translate the complete Strings_de-DE.js in the near future.

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

sammysoul

unread,
Aug 13, 2008, 11:07:27 AM8/13/08
to Clipperz
Ciao Giulio,
I would like to volunteer translating your Community Edition and/or
your website into German. I am German and currently work as a
translator in the US. Let me know what I could take on first. I just
looked at the String_de-De.js file and it seems not too big of a job
to do. Let me know what you think or just give me the GO sign!

Thanks,
Sascha

On 8 Aug., 06:43, "Giulio Cesare Solaroli" <giulio.ces...@gmail.com>
wrote:

Giulio Cesare Solaroli

unread,
Aug 18, 2008, 5:12:14 AM8/18/08
to sasc...@gmail.com, Clipperz
Hello Sascha,

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

Reply all
Reply to author
Forward
0 new messages