J4 Issue ?
avatar JoomliC
JoomliC
28 Sep 2018

In the default strings use for action logs, may the "the" in the following strings givein problem with translation ?
File: https://github.com/joomla/joomla-cms/blob/staging/administrator/language/en-GB/en-GB.plg_system_actionlogs.ini

PLG_SYSTEM_ACTIONLOGS_CONTENT_ARCHIVED="User <a href=\"{accountlink}\">{username}</a> archived the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED="User <a href=\"{accountlink}\">{username}</a> updated the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_PUBLISHED="User <a href=\"{accountlink}\">{username}</a> published the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UNPUBLISHED="User <a href=\"{accountlink}\">{username}</a> unpublished the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_TRASHED="User <a href=\"{accountlink}\">{username}</a> trashed the {type} <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_DELETED="User <a href=\"{accountlink}\">{username}</a> deleted the {type} {title}"

Eg in French :

  • the article => l'article
  • the category => la catégorie
  • the menu => le menu

While the current system the {type} works in English, not in French, and maybe not with other gender-oriented languages.

Could removing simply the could work, as for string PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED="User <a href=\"{accountlink}\">{username}</a> added new {type} <a href=\"{itemlink}\">{title}</a>" ?

cc/ @brianteeman @infograf768

avatar JoomliC JoomliC - open - 28 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 28 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Sep 2018
avatar JoomliC JoomliC - change - 28 Sep 2018
The description was changed
avatar JoomliC JoomliC - edited - 28 Sep 2018
avatar brianteeman
brianteeman - comment - 28 Sep 2018

in english it needs the "the"

avatar JoomliC
JoomliC - comment - 28 Sep 2018

So, i don't know (yet) how it's possible to translate in French...

avatar mbabker
mbabker - comment - 28 Sep 2018

You shouldn’t have to provide a literal translation of the English text.
It should be encouraged to use structurally correct statements in the
translated language.

On Fri, Sep 28, 2018 at 6:42 AM Cyril Rezé notifications@github.com wrote:

So, i don't know (yet) how it's possible to translated in French...


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#22426 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoVyN6tqcE7OBms21ga15R-c5DquTks5ufgszgaJpZM4W-WAh
.

--

  • Michael Please pardon any errors, this message was sent from my iPhone.
avatar brianteeman brianteeman - change - 28 Sep 2018
Title
[RTC][Actionlog] Default strings for log message in other languages, gender issue ?
[Actionlog] Default strings for log message in other languages, gender issue ?
avatar brianteeman brianteeman - edited - 28 Sep 2018
avatar brianteeman brianteeman - change - 28 Sep 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 28 Sep 2018
avatar JoomliC
JoomliC - comment - 28 Sep 2018

Maybe this way:

PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED="{type} <a href=\"{itemlink}\">{title}</a> created by user <a href=\"{accountlink}\">{username}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_ARCHIVED="{type} <a href=\"{itemlink}\">{title}</a> archived by user <a href=\"{accountlink}\">{username}</a>"
etc...

Where {type} will include particle in the string
In file : https://github.com/joomla/joomla-cms/blob/staging/administrator/language/en-GB/en-GB.plg_actionlog_joomla.ini

Having this instead:

PLG_ACTIONLOG_JOOMLA_TYPE_ARTICLE="the article"
PLG_ACTIONLOG_JOOMLA_TYPE_CATEGORY="the category"
etc...

You shouldn’t have to provide a literal translation of the English text. It should be encouraged to use structurally correct statements in the translated language.

Yes, but how to manage {type} for category, article... currently using the default string?

avatar JoomliC
JoomliC - comment - 28 Sep 2018

@mbabker ok, so you mean by adding specific strings for other languages not in English, but only if needed :
PLG_SYSTEM_ACTIONLOGS_CATEGORY_UPDATED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a mis à jour la {type} <a href=\"{itemlink}\">{title}</a>"

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Sep 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Sep 2018
Category com_csp
avatar infograf768
infograf768 - comment - 28 Sep 2018

@JoomliC
We can't add specific strings unless they are plural forms which crowdin takes care of when defined.
I had already chosen a specific formatting for the French Language pack

I have used this:

; Common content type log messages
PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a ajouté : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_ARCHIVED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a archivé : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UPDATED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a mis à jour : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_PUBLISHED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a publié : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_UNPUBLISHED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a dépublié : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_TRASHED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a mis à la corbeille : {type}, <a href=\"{itemlink}\">{title}</a>"
PLG_SYSTEM_ACTIONLOGS_CONTENT_DELETED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a supprimé : {type}, {title}"
avatar infograf768
infograf768 - comment - 28 Sep 2018

Note: but we could indeed modify this and do

PLG_SYSTEM_ACTIONLOGS_CONTENT_ADDED="L'utilisateur <a href=\"{accountlink}\">{username}</a> a ajouté {type} <a href=\"{itemlink}\">{title}</a>"

and then change the type
to
l'article, la bannière, le niveau d'accès, etc.

avatar JoomliC
JoomliC - comment - 28 Sep 2018

Agree about this way, but my concern was about integration with third party extension, using content plugin event onContentAfterSave
Default strings used when thirdparty extension actionlogs plugin is disabled (allow still logs to be processed...)

But if for French, you use one or the other way, it could work with all types i think! ?

avatar JoomliC
JoomliC - comment - 28 Sep 2018

@infograf768 Maybe nicer the second way, with particle inside type ?

Closed: as could be managed different way by language.

avatar JoomliC JoomliC - change - 28 Sep 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-09-28 13:26:20
Closed_By JoomliC
avatar JoomliC JoomliC - close - 28 Sep 2018
avatar infograf768
infograf768 - comment - 28 Sep 2018

@mbabker
Are there any chances for these strings to be used by a 3rd party extension where adding the french particle le, la, l' would create problems?
EDIT: I mean in the TYPE strings

avatar mbabker
mbabker - comment - 28 Sep 2018

If so then they're reusing strings in a context they weren't written for.

avatar infograf768
infograf768 - comment - 28 Sep 2018

OK, thanks.

avatar JoomliC
JoomliC - comment - 28 Sep 2018

If so then they're reusing strings in a context they weren't written for.

@mbabker https://github.com/joomla/joomla-cms/blob/staging/plugins/actionlog/joomla/joomla.php#L123

If thirdparty plugin for action logs is unpublished, it will fall back on default strings for logs.
(this is the result i've got if my extension actionlogs config are set in database with string prefix and i disable my plugin).

avatar JoomliC
JoomliC - comment - 28 Sep 2018

In all cases, if my plugin is disable, type strings would be missing too...

avatar mbabker
mbabker - comment - 28 Sep 2018

If so then they're reusing strings in a context they weren't written for.

@mbabker https://github.com/joomla/joomla-cms/blob/staging/plugins/actionlog/joomla/joomla.php#L123

If thirdparty plugin for action logs is unpublished, it will fall back on default strings for logs.

That has nothing to do with third party re-using these strings in another context, which is what the question was about.

avatar JoomliC
JoomliC - comment - 29 Sep 2018

Sorry, misread....

Add a Comment

Login with GitHub to post a comment