[SOLVED]Hilfe jquery timeago?

11 years 3 months ago - 11 years 3 months ago #217894 by jojo12
[SOLVED]Hilfe jquery timeago? was created by jojo12
Es geht um das cb activity un jquery timeago:

Wer kommt draus bei der Anpassung des jquery timeago für deutsch. Kyle hat mal was versucht zu erklären, aber da bin ich überhaupt nicht gestiegen und es stört mich doch ziemlich!
ich habs wenigstens soweit mit den Suffixen, dass es wenigstens sagt: "15 Minuten vorher".
Aber schöner wäre doch: vor 15 Minuten.

[translate in english:]
I need help adapting the jquery timeago for german with prefix instead of suffix.
The english language uses suffix the german needs prefixes. I tried to change but didn't succeed. What and where to change?

[SOLVED?]
I found a solution but I am not sure, it's ok?
in components/com_comprofiler/plugin/user/plug_cbactivity/templates/default
I opened jquery.php and added
. "prefixAgo: '" . addslashes( CBTxt::T( 'vor' ) ) . "',"
. "prefixFromNow: '" . addslashes( CBTxt::T( 'in' ) ) . "',"
then I changed the following
. "suffixAgo: '" . addslashes( CBTxt::T( '' ) ) . "',"
. "suffixFromNow: '" . addslashes( CBTxt::T( '' ) ) . "',"
-> the words for suffixAgo are now empty
Then I saved.
It's now good german.

Is this ok like that, or is there a better solution?
Can I make an override or do I need to change that after each update?

Please Log in to join the conversation.

Moderators: beatnantkrileonXBOOMX
Time to create page: 0.287 seconds

Facebook Twitter LinkedIn