Multilingual:"Translation of title" not working for archive

Found a bug? Tell us!!
Post Reply
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Multilingual:"Translation of title" not working for archive

Post 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?
I make s9y plugins, too.
My s9y blog depends on them. :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu »

Solved - see other thread and update 2.25 and 2.26.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

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

Post 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?
I make s9y plugins, too.
My s9y blog depends on them. :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

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

Post 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.
I make s9y plugins, too.
My s9y blog depends on them. :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post 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
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

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

Post 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. :)
I make s9y plugins, too.
My s9y blog depends on them. :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu »

And another one for the title and description in the RSS feed. Needs a hard reload if open!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
lucas971
Posts: 1
Joined: Fri May 06, 2016 5:44 pm

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

Post by lucas971 »

Where I can get the fix?
Dixie Chicks concerts are awesome! Going to a few in 2016!
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

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

Post 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
I make s9y plugins, too.
My s9y blog depends on them. :)
Post Reply