Search 
Search Forums:


 




in Polish?

Reply to Post
UserPost

12:34 pm
October 2, 2008


Tadeusz

Guest

Hi.
First: Under topic is text: “Sprechen Sie Duetsch?” - should be “Sprechen Sie Deutsch?”

Second: Is anywhere Polish version of AWP?

Third” I would to have multilingual website. I’m using plugin ‘qTranslate’. There can I write posts/pages in format [lang_en]english text[/lang_en][lang_de]german text[/lang_de]. So, I try to rename texts (i.e. ‘[lang_en]Add new Comment[/lang_en][lang_pl]Dodaj komentarz[/lang_pl]‘) but the ‘lang_codes’ is not parsed. I have under post ‘[lang_en]….’ Is anywhere solution this problem?

Greets from Poing/Germany

1:54 pm
October 2, 2008


Aaron

Admin

posts 245

What? Selling errror? There’s no spelling error. ;)

There is no polish version, all translations are provided by volunteers, so until someone volunteers, there won’t be.

The language codes wouldn’t be parsed because those BB tags only work with the content inside a post. I’ll see what I can do for the future.

2:06 pm
October 2, 2008


Tadeusz

Guest

OK. Then I make polish translation. :) I think…
Anyway, do You have any idea, how can I make it? I mean multilanguage site with AWP. I’m not profi PHP-coder but ‘a bit’…

7:08 pm
October 2, 2008


Aaron

Admin

posts 245

You caught me on a good day, so download the trunk version of AWP and activate the qTranslate module.

Thanks for the offer of a polish translation.

11:02 am
October 3, 2008


Tadeusz

Guest

Hi.
In theory looks great, but didn’t work for me. Look at my Test Website.
I have only two WordPress plugins enabled: qTranslate (1.1.4) and aWP 1.23.5 and trunk from post above.
In aWP are enabled default plugins (Inline *) and qTranslate Support.
What should I do with it now?
Greets

PS.
Polish translation is in 25% ready…

12:27 pm
October 3, 2008


Aaron

Admin

posts 245

First, there is a problem with the way things are set up on your server somewhere. I’m not able to open the core JS file. Try fixing that bug and see if the problem goes away.

It seems other files are giving similiar errors. Make sure everything uploaded correctly. Also, delete the old aWP version completely and just use trunk.

1:26 pm
October 3, 2008


Tadeusz

Guest

Damn… This problem I had with NextGEN Gallery (slideshow loading for ever). Default WP installation, catalog wp-content has ‘777′ rights… If I change to ‘755′ is all OK…
Well… JS File is now OK. Effects working, but link still looks like [lang_en]Show comments[/lang_en][lang_de]….

I did new aWP installation (trunk).

2:41 pm
October 3, 2008


Aaron

Admin

posts 245

Sorry about that, to fix:

Open: ajaxd-wordpress/modules/awp-qtranslate.php

Find (both): useCurrentLanguageIfNotFoundUseDefaultLanguage

Replace (both) with: qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage

2:46 pm
October 3, 2008


Tadeusz

Guest

YES! Thank You very (VERY) much. :D

Edit:
Well… Another two problems. :)
Default language is English. I change to German. Click on “Zeige Kommentare” and… instead of “Kommentare verstecken” i have english text (Hide comments). Next click on “Hide comments” and original German text is exchange with “Show Comments”.

Second problem is with date/time in comments.
“admin posted the following on %PM %844 %Europe/Berlin%q, %2008 at %1:%Oct %p.”
Where can I change this?

5:23 pm
October 3, 2008


Aaron

Admin

posts 245

For the second problem, the error is most likely with qtranslate or another plugin. The my line of code calls for the standard comment times, a bad value is returned.

This is the line in the code that is being “ruined.” As you can see, it is very straight forward and shouldn’t have any problems. <?php echo sprintf(__('%1$s posted the following on %2$s at %3$s.','awp'),get_comment_author_link(), get_comment_date(),get_comment_time());?>

For the first, that problem will take a bit more doing, because qTransalate doesn’t know what language to pick when the ajax response is set. I’ll work on that this weekend.

11:27 am
October 4, 2008


Tadeusz

Guest

Yep. You have right… If qTranslate is deactivated all is OK. :/ I must to talk with author of qTranslate…
EDIT: OK. I’m found it. strftime instead date… Well I must edit my not-default template. :)
And… In this case, I must hardcode date/time format in aWP… or You Could change corresponding file so, in comments date/time place will be read adequate date/time format from qTranslate config?

So, I see, a part of texts is hardcoded in .php files… (i.e. “posted the following on”). This mean, “posted the…” is not in .po file and will be not translated? Then I must all messages hardcoded with BBcodes in .php. I’ve right?

And the old problem (in my previous post) - If you make this, You will be my Lord. ;)

Greets

2:54 pm
October 4, 2008


Aaron

Admin

posts 245

Could change corresponding file so, in comments date/time place will be read adequate date/time format from qTranslate config?

In this case, I’ll have to say no because qTranslate should support modifying the comment date format correctly. If it doesn’t, its author needs to change it. Since most users don’t use qTranslate, it won’t work correctly for them if I modified AWP.

However, you are free to modify your copy, but it would have to be changed on each upgrade.

So, I see, a part of texts is hardcoded in .php files… (i.e. “posted the following on”). This mean, “posted the…” is not in .po file and will be not translated? Then I must all messages hardcoded with BBcodes in .php. I’ve right?

It isn’t hardcoded. The __( function sends the entire string to wordpress to be translated according to the AWP .mo file. The strings like %2$s just fill in the information. So you could have a translation like, “This comment was posted on %2$s by %1$s at %3$s.”

4:16 pm
October 4, 2008


Tadeusz

Guest

Ad.1. OK. Now I have similar situation with date/time as with links “Show Comments” - is always in one language (in fact, the last defined language (I have added polish…).

Ad.2. That’s cool… I have a little trouble with poedit under Linux… I try to use KBabel but I must learn first (I don’t know, how to compile .mo file)… :)

Reply to Post


Reply to Topic: in Polish?

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 1 + 8        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

4 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 212

Posts: 671

Members:

There are 1 members

There are 199 guests

Aaron has made 245 posts

Top Posters:

Administrator: Aaron