Re: [Tiki-devel] Adding tr tags on forum title name

Bsfez Tiki via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hello,

Interesting direction this discussion has taken. šŸ‘½

I’m not the one that will decide what is the right way to (code) answer the case (that’s why I stop at adding a tr tag + the option).

But look like we have quite a few discussions about translations that are stuck in the air:
*Context translations (IE: D => D_day)
* Forum translations (this one)
* Adding preferences for dynamic translations (global, per feature, etc)

May be topic in the next TRM ?
Is there a way (date time) that can help you to attend a Tiki Roundtable Meeting Brendan ?

Bernard

PS: I will organise the next TRM ;-)

> On 1 Feb 2021, at 21:27 , Dr. Sassafras <[email protected]> wrote:
> 
> Ok, good example. So there might be situations where an auto-translation would be disadvantageous. These are some of my thoughts on options for moving forward. 
> 
> A single preference to turn on all dynamic content translations. Default =n
> 
> A preference to turn on forum dynamic content translations. (multiple references to turn on and off dynamic content across different areas of tiki) default=n
> 
> A preference to turn on contextual dynamic content translations. Single preference for all dynamic content, but will break anything that has not been translated :(
> 
> Or if there was a simple way to automatically add the original English dynamic string to an English translation, then a contextual prefix could always be added and a collision should never happen. This would allow all dynamic content to be translated over tiki without an additional preference, and would work in every situation. 
> 
> Brendan
> 
>> On Feb 1, 2021, at 4:20 AM, luciash via TikiWiki-devel <[email protected]> wrote:
>> 
>> 
>> Example:
>> 
>> Lets say I want to have a Czech forum about a RPG where one of the forums is for Wizards.
>> 
>> I want that forum to be named Wizards, because the others are named Orcs, Elves, Dragons, etc.
>> 
>> I do not want to have the Wizards forum to be auto-translated to "PrÅÆvodci" (Guides)... No, that would be really stupid name for the forum, when a Wizard in a game or book story is actually called a "Čaroděj" (Wizard)!
>> 
>> luci
>> 
>> 
>> 
>> On 31.01.2021 16:09, Dr. Sassafras wrote:
>>> What am I missing here? Under what condition would someone want a forum title not translated? Wouldn't they have to translate the form title for any effect to be displayed? So let's say the capability to translate was always on, (no preference) and since the admin does not want them translated, he does not make translations. Wouldn't the titles just show up normally (untranslated)? 
>>> 
>>> Brendan
>>> 
>>>> On Jan 30, 2021, at 7:11 AM, Bsfez Tiki via TikiWiki-devel <[email protected]> <mailto:[email protected]> wrote:
>>>> 
>>>>  Hi Luciash,
>>>> 
>>>> Thanks for your reply.
>>>> 
>>>>> Eh, I thought maybe it would be easier to add a global pref "to translate the forum titles or not"
>>>>> 
>>>> I started with a global pref but then found only related and close (same page) pref that required a new database table field. (I still need a sample code… refactoring) ;-)
>>>> 
>>>> If no one raise a concern about this, I’ll try to look back to test with a global pref.
>>>> 
>>>> B
>>>> 
>>>> 
>>>> 
>>>>> On 30 Jan 2021, at 01:27 , luciash via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote:
>>>>> 
>>>>> Thanks Bernard!
>>>>> 
>>>>> Eh, I thought maybe it would be easier to add a global pref "to translate the forum titles or not" which would not require introducing a new database table field but well...
>>>>> 
>>>>> Any Tiki SQL experts here, so we do not miss anything for fresh installs and upgrades as well? ;)
>>>>> 
>>>>> luci
>>>>> 
>>>>> 
>>>>> 
>>>>> On 28.01.2021 14:28, Bsfez Tiki via TikiWiki-devel wrote:
>>>>>> As suggested and following the guidelines I created a merge request with an option (per forum) to have the title translated (default is 'n')
>>>>>> 
>>>>>> https://gitlab.com/tikiwiki/tiki/-/merge_requests/689 <https://gitlab.com/tikiwiki/tiki/-/merge_requests/689>
>>>>>> Thanks for reviewing it.
>>>>>> 
>>>>>> 
>>>>>> However this require to add a column "title_is_translatable" in the "tiki-forums" table in the database something that is an inch over my self-assurance capabilities. šŸ˜‚šŸ˜Ž
>>>>>> 
>>>>>> I’ll be glad to have some master guidance on how to do this and complete the commit. šŸ™
>>>>>> 
>>>>>> B
>>>>>> 
>>>>>> 
>>>>>>> On 27 Jan 2021, at 21:00 , luciash via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote:
>>>>>>> 
>>>>>>> make it optional and will have no objection against this
>>>>>>> 
>>>>>>> On 26.01.2021 9:01, Bsfez Tiki via TikiWiki-devel wrote:
>>>>>>>> (Yes it is my Tiki leftovers day ;-) )
>>>>>>>> 
>>>>>>>> The forum title or name are not translated (no tr tags).
>>>>>>>> 
>>>>>>>> I had cases where, in a multilingual context, it was an issue.
>>>>>>>> * One {tr}support{/tr} forum for any languages
>>>>>>>> * When using "Discuss pages on forums"
>>>>>>>> * … (I have a few Tiki with a custom file to answer the issue while I don’t remember exact example)
>>>>>>>> 
>>>>>>>> Now, I remember they were some different view about this (Luci ?) and I prefer to ask before submitting a merge request.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> What is the opinion on committing this to have the forum name translated ?
>>>>>>>> 
>>>>>>>> At:
>>>>>>>>  templates/tiki-view_forum.tpl
>>>>>>>> 
>>>>>>>> Line 4
>>>>>>>> -		{title help="forums" admpage="forums" url=$forum_info.forumId|sefurl:'forum'}{$forum_info.name}{/title}
>>>>>>>> +		{title help="forums" admpage="forums" url=$forum_info.forumId|sefurl:'forum'}{tr}{$forum_info.name}{/tr}{/title}
>>>>>>>> 
>>>>>>>> 
>>>>>>>> B
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> TikiWiki-devel mailing list
>>>>>>>> [email protected] <mailto:[email protected]>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> TikiWiki-devel mailing list
>>>>>>> [email protected] <mailto:[email protected]>
>>>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> TikiWiki-devel mailing list
>>>>>> [email protected] <mailto:[email protected]>
>>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>>>> _______________________________________________
>>>>> TikiWiki-devel mailing list
>>>>> [email protected] <mailto:[email protected]>
>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>>> 
>>>> _______________________________________________
>>>> TikiWiki-devel mailing list
>>>> [email protected] <mailto:[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> TikiWiki-devel mailing list
>>> [email protected] <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.