Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPlural translations don't seem to work #20453
Comments
|
Good finding It seems to work with es. That seems to be the issue. The function assumes that the language is |
|
We updatet the lang list recently iirc? |
|
e5be299 That's the commit / code changing |
|
my locale update pr #17222 |
|
Well, I guess is difficult to discuss about translations to Transifex, but seem that they use underscores to separate counties from translations, which seems wrong. I don't know what would be the right thing .. |
|
@skjnldsv There was a reason why it is - instead of _ but I can't find it right now. For the transformation it might also help to just specify it here: https://github.com/nextcloud/server/blob/master/.tx/config#L3 ? |
Keep in mind that this then needs to be updated in every single app out there. So fixing the JS part to look for the transifex version of the string might be the easier solution. |
This comment was marked as outdated.
This comment was marked as outdated.
|
I'm confused now. Are we still talking about the same thing? #8217 changed What needs to done is to check the usages of OC.getLanguage() and other places using the lang attribute and make sure the code expects |



Steps to reproduce
Expected behaviour
In summary expect:
Actual behaviour
In summary i see:
Note that the translation is programmed correctly:
server/apps/files/js/filesummary.js
Lines 223 to 226 in 2b913de
..and also is translated.
server/apps/files/l10n/es_AR.js
Lines 61 to 62 in df463f9
But use the singular, with the number greater than 1.
Server configuration detail
Operating system: Linux 5.5.10-200.fc31.x86_64 #1 SMP Wed Mar 18 14:21:38 UTC 2020 x86_64
Webserver: Apache/2.4.43 (Fedora) OpenSSL/1.1.1d (fpm-fcgi)
Database: mysql 10.3.22
PHP version:
7.3.16
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, intl, json, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mcrypt, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, apcu, igbinary, imagick, msgpack, pcov, pdlib, smbclient, zip, redis, libsmbclient, Zend OPcache
Nextcloud version: 18.0.2 - 18.0.2.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one:
Are you using encryption:
Are you using an external user-backend, if yes which one:
Client configuration
Browser: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Operating system:
Logs
Web server error log
Nextcloud log
Browser log
Insert your browser log here, this could for example include: