While this funtion with strtolower may have rights for some languages, it makes no sense for a language like German.
Maybe also other languages will write the first letter uppercase, there should be a (config) setting to avoid such behaviour.
That is also valid for the line 618 below.
https://github.com/Piwigo/Piwigo/blob/4ac772224f25f1b2f3bf94bd1f9c45b653d561f5/include/functions_html.inc.php#L614
While this funtion with strtolower may have rights for some languages, it makes no sense for a language like German.
Maybe also other languages will write the first letter uppercase, there should be a (config) setting to avoid such behaviour.
That is also valid for the line 618 below.
<!-- github-sync-id:1858127331 -->
I think the idea was to avoid having the word "visits" translated twice. One for %d visits and another one as title Visits. But you're absolutely right, changing the case may result in a grammatical error, depending on language.
I fixed it.
I think the idea was to avoid having the word "visits" translated twice. One for `%d visits` and another one as title `Visits`. But you're absolutely right, changing the case may result in a grammatical error, depending on language.
I fixed it.
<!-- github-comment-id:1686472743 -->
Thx for thinking about that.
I understand that it may be fine for some languages.
So, why not adding another config setting vor such?
e.g. in config_default.inc.php > $conf['lower_upper'] = true; // or false .. which one is preferred as default
And inside the language file(s) a value which will override the confg value.
OR, only inside the language files common.lang.php and (if exists) plugin.lang.php a simple $lang['_lower'] = true; // false
(the _ indicates here that it is not a translateable value ..
Therefore both cases can be true (when needed).
Thx for thinking about that.
I understand that it may be fine for some languages.
So, why not adding another config setting vor such?
e.g. in config_default.inc.php > **$conf['lower_upper'] = true; // or false .. which one is preferred as default**
And inside the language file(s) a value which will override the confg value.
OR, only inside the language files common.lang.php and (if exists) plugin.lang.php a simple **$lang['_lower'] = true; // false**
(the _ indicates here that it is not a translateable value ..
Therefore both cases can be true (when needed).
<!-- github-comment-id:1689609800 -->
from the moment we have a specific language string required for one language, the is no need to lower/upper anything :-)
from the moment we have a specific language string required for one language, the is no need to lower/upper anything :-)
<!-- github-comment-id:1689625668 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
https://github.com/Piwigo/Piwigo/blob/4ac772224f25f1b2f3bf94bd1f9c45b653d561f5/include/functions_html.inc.php#L614
While this funtion with strtolower may have rights for some languages, it makes no sense for a language like German.
Maybe also other languages will write the first letter uppercase, there should be a (config) setting to avoid such behaviour.
That is also valid for the line 618 below.
I think the idea was to avoid having the word "visits" translated twice. One for
%d visitsand another one as titleVisits. But you're absolutely right, changing the case may result in a grammatical error, depending on language.I fixed it.
Thx for thinking about that.
I understand that it may be fine for some languages.
So, why not adding another config setting vor such?
e.g. in config_default.inc.php > $conf['lower_upper'] = true; // or false .. which one is preferred as default
And inside the language file(s) a value which will override the confg value.
OR, only inside the language files common.lang.php and (if exists) plugin.lang.php a simple $lang['_lower'] = true; // false
(the _ indicates here that it is not a translateable value ..
Therefore both cases can be true (when needed).
from the moment we have a specific language string required for one language, the is no need to lower/upper anything :-)