Skip to content
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

i18n ru intval bug #5072

Merged
merged 3 commits into from May 17, 2018
Merged

Conversation

Alkarex
Copy link

@Alkarex Alkarex commented May 17, 2018

Should fix:

Got error 'PHP message: PHP Warning: A non-numeric value encountered in /.../view/lang/ru/strings.php on line 5

PHP 7.2.5 / Ubuntu 18.04 LTS

Should fix: Got error 'PHP message: PHP Warning:  A non-numeric value
encountered in /home/alex/public_html/f.a80.fr/view/lang/ru/strings.php
on line 5\n

PHP 7.2.5 / Ubuntu 18.04 LTS
@tobiasd
Copy link
Collaborator

tobiasd commented May 17, 2018

I'm not sure this will help much. The strings.php file will be recreated once there is a new translation at Transifex. So the question is, why the line was not added to the strings file the last time it was recreated.

@tobiasd
Copy link
Collaborator

tobiasd commented May 17, 2018

Consistently no of the other translation files have that line. The generation process of the strings file (console po2php) needs to be fixed.

@Alkarex
Copy link
Author

Alkarex commented May 17, 2018

Ok, and the tests fail only for PHP 7.1. There seems to be something strange there...

@tobiasd
Copy link
Collaborator

tobiasd commented May 17, 2018

Regarding the testing, see #5066

@Alkarex
Copy link
Author

Alkarex commented May 17, 2018

f980516

@tobiasd
Copy link
Collaborator

tobiasd commented May 17, 2018

Do you like to run something like

for i in view/lang/*/messages.po
  bin/console po2php $i
end

to recreate the strings.php files for all the languages to add the new line everywhere? (it is fish syntax, your shell might need a different one)

```sh
for i in view/lang/*/messages.po; do bin/console po2php $i; done
```
@Alkarex
Copy link
Author

Alkarex commented May 17, 2018

Done

@tobiasd
Copy link
Collaborator

tobiasd commented May 17, 2018

Thanks!

@tobiasd tobiasd merged commit 41b7d75 into friendica:2018.05-rc May 17, 2018
@MrPetovan MrPetovan added this to the 2018.05 milestone May 17, 2018
@Alkarex Alkarex deleted the ru-plural-intval-bug branch May 17, 2018 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants