Page 1 of 1

Multilingual:"Translation of title" not working for archive

Posted: Wed Apr 20, 2016 9:05 am
by wesley
This is a separate problem I've encountered with the plugin_event_multilingual, so I'm posting as a new topic.

One of the configuration options available is the "Translation of blog title", which lets you use {{en}}Title{{--}} style of writing the blog title to let s9y pick out the correctly translated one out of many.

The two places that I noticed this to not work are within the administration (backend) page, which isn't critical, and the archive page (<blog base URL>/archive), which is.

You can currently see this problem at my blog's archive here: http://tool-box.info/blog/archive

I've skimmed through the code and am still baffled as to why the archive page would not have the properly filtered title like the rest of the frontend pages. I put the multilingual plugin as the first event plugin on the list, but it made no difference. The problem occurs with different themes, so it's not a fault of a particular theme, either, as far as I can tell.

Does anyone have any idea as to why this is happening? Maybe it's the way archive page is called out?

Re: Multilingual:"Translation of title" not working for arch

Posted: Thu Apr 21, 2016 10:47 am
by Timbalu
Solved - see other thread and update 2.25 and 2.26.

Re: Multilingual:"Translation of title" not working for arch

Posted: Sun Apr 24, 2016 9:43 am
by wesley
Upon further testing, the translation of title isn't applied when a comment or trackback is made, either. When I added a link to one of my older entries, it triggered an automatic trackback, which left the whole {{!en}} stuff as the name of the blog.

Example: http://tool-box.info/blog/archives/1968 ... -Naju.html

I wonder if this is fixable from the plugin?

Re: Multilingual:"Translation of title" not working for arch

Posted: Sun Apr 24, 2016 9:53 am
by Timbalu
Did you try adding "|multilingual_lang" * modifier to $trackback.author ?, ie

Code: Select all

{$trackback.author|multilingual_lang}
at https://github.com/s9y/Serendipity/blob ... cks.tpl#L3

* see http://board.s9y.org/viewtopic.php?f=4& ... #p10445249

Addition:
This is not done by the Plugin automagically, since the regex parser only applies to the banners blog title(s), entries and entry titles and sidebar items (titles). Trackback author and such things are different Smarty vars and need to have the multilingual_lang modifier set in the themes template files where you need it.

Re: Multilingual:"Translation of title" not working for arch

Posted: Sun Apr 24, 2016 5:28 pm
by wesley
I'm not sure if I'm doing this right. I changed this line in trackback.tpl:

Code: Select all

{$trackback.author|default:$CONST.ANONYMOUS}
To...

Code: Select all

{$trackback.author|multilingual_lang|default:$CONST.ANONYMOUS}
But the problem persists.

Re: Multilingual:"Translation of title" not working for arch

Posted: Sun Apr 24, 2016 8:08 pm
by Timbalu
wesley wrote:But the problem persists.
No. Now it has changed. At least for me - to:
Wesley's Tool-Box on Friday, April 22. 2016: Naju population returns to 100 thousand - who's in there?
and
웨슬리의 툴박스 작성일: 2016년 4월 22일 금요일: Naju population returns to 100 thousand - who's in there?
with <ko> lang set

Re: Multilingual:"Translation of title" not working for arch

Posted: Mon Apr 25, 2016 2:49 am
by wesley
Huh... you're right. I checked with another browser and see the same thing as you. It must have been a caching thing. Thanks for the help. :)

Re: Multilingual:"Translation of title" not working for arch

Posted: Fri May 06, 2016 9:45 am
by Timbalu
Hi Wesley

I just pushed another fix for the blog title, which should now work in the email (ie. by contactform) subject (and probably other places) too. Available tomorrow.

Re: Multilingual:"Translation of title" not working for arch

Posted: Tue May 10, 2016 7:27 pm
by Timbalu
And another one for the title and description in the RSS feed. Needs a hard reload if open!

Re: Multilingual:"Translation of title" not working for arch

Posted: Sun May 15, 2016 9:01 pm
by lucas971
Where I can get the fix?

Re: Multilingual:"Translation of title" not working for arch

Posted: Mon May 16, 2016 6:22 am
by wesley
If you have the Spartacus plug-in, then it'll let you download and update to the latest version.
Alternately, you could download the files from the s9y repository at Github:
https://github.com/s9y/additional_plugi ... ltilingual