-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switching translation is hard #76
Comments
quick note: the translations for the parts you mentioned aren't part of the php-gettext based i18n, but can be set in going to look into this later today |
i ran into a very similar error with an outdated
maybe we should move any non-user data out of the |
foundation-select.js requires an unique id-attibute on each select element it should transform, that was missing on the default_lang one, which lead to the javascript-replacement-select widget to not update the hidden actual select element that was part of the form, thus not actually changing the value. |
With 0.4.2 switching languages works for me. Thank you :) By comparing: |
the lowercase "about" in the top bar happens in index.php#L92, if i'm not mistaken, and that should get translated by php-gettext (into "über"), so if you meant that one, something is still amiss |
Just a note. My idea was that finally everything a user sees will be easily translatable in the backend. I'd keep gettext for the backend itself. Still, I didn't put everything into the settings page on purpose. For some it is not so easy to explain where they show up (or why even twice as it is the case with "about") and thus it would become somewhat confusing. These are the strings that are translated by gettext on the front page:
I don't check the ones in the checkout page since I understand, that there is new code coming anyway (sessions). |
I am sorry, I meant the lowercase "about" in the top bar. index.php#L92 really is the line. The line number matches the reference in messages.po. To me it seems that all strings that should be translated with: On 'http://journaltouch/index.php' the text of the floating button is translated from 'Send articles' to 'Artikelliste schicken'. |
@krugar I think I already mentioned it somewhere: this codespell-thingy also went into the po files (and did stuff like translating german "Autor" to "author"). Maybe this broke something more..? The line numbers shouldn't be too important. I change lines in the code all the time without breaking gettext translations. |
i had taken a look at the german translation file and i couldn't spot the "author" thing you mentioned. i have a hunch thatvrunning |
I might be wrong, I just thought I saw something like that. :) (Oops, it's already sunday - somehow I'm missing a day sigh :D) |
I am using JournalTouch 0.4.1 on CentOS 7 x86_64 with centos-release-scl package and packages:
php55
php55-php
php55-php-mbstring
When I visit:
http://journaltouch/admin/settings.php -- Translations
and change Default language from 'de_DE' to 'en_US' and clicked on [Save] it seems to be fine.
However, after saving I visit:
http://journaltouch/
and the buttons in top bar remain in German by default.
My workaround was to:
Then I visited again:
http://journaltouch/
This created lots of output in the log file:
tail -f /var/log/httpd24/error_log
[Wed Apr 13 11:31:28.413418 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined property: stdClass::$language_default in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/sys/bootstrap.php on line 36, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421672 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 69, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421717 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 87, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421900 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 99, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421912 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 105, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421963 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 160, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.421992 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 178, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422002 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 179, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422013 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 190, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422021 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 191, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422030 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 200, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422054 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 226, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.422075 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 238, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.423423 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 434, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.423529 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 452, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
[Wed Apr 13 11:31:28.423562 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 453, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
NOTE: removed multiple repetitions of previous 'line 434, line 452, line 453' messages
[Wed Apr 13 11:31:28.424646 2016] [:error] [pid 882] [client 141.14.232.200:34496] PHP Notice: Undefined index: in /opt/rh/httpd24/root/var/www/html/bibliocoll-JournalTouch-869729f/index.php on line 519, referer: http://journaltouch.mpikg.mpg.de/admin/settings.php
I can change other settings in
http://journaltouch/admin/
without output in log file.The text was updated successfully, but these errors were encountered: