For formatting there's something native in PHP
El 31 mar 2019, a las 3:57, Navarr Barnier <nav...@gtaero.net> escribió:
I feel like this would be a good idea, for managing the backend of getting the translations.
For formatting there's something native in PHP
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/1fdfacc8-d59b-4b7e-9040-ea936e4f3a4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public function translate($message, $parameters = [], $context = null);
I did suggest something like that some time ago, but it did not gain enough interest.There’s my initial proposal:I’d happy if anyone want to work on this spec.
El 31 mar 2019, a las 3:57, Navarr Barnier <nav...@gtaero.net> escribió:
I feel like this would be a good idea, for managing the backend of getting the translations.
For formatting there's something native in PHP
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php...@googlegroups.com.
This is kind of what I am thinking.$error = "What the hell are you doing? Read the fine manual. Everyone knows that you can not overwrite /etc/shadow from a web application.";$foobar = new classThatImplements('\Psr\Localization\Translation');$error = $foobar->translateString($error, $bcp47);It would potentially allow applications to load their own translations into such a class w/o needing to implement the backend themselves and then retrieve them as needed, possibly even a class that is good at compensating for translations the web application does not have translations for, written by programmers who understand localization and create implementations of the interface.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/cf274691-629f-402a-b6ff-9d2adf9e570c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to php...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/4925e8d1-f6a9-405a-9efb-2aa4c30dae04%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to php...@googlegroups.com.
1. For intl passing $translator->translatePlural(‘You have %s likes’, $n) makes no sense. It basically does not care about $n when obtaining a message.
2. intl has its own message source, it makes little sense storing messages in gettext's PO/MO: https://www.php.net/manual/en/class.resourcebundle.php
3. Like in gettext there could be message storages that may obtain messages differently for plurals / ordinals etc. These may depend on parameters different than a number of items.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/b95808bf-3302-4e83-a095-080b80ae0231%40googlegroups.com.
How about moving https://gist.github.com/oscarotero/33e3af8741045c2a1a5a89310571cbdb to WG github repository? I'm interested in proposing changes and putting together a strong meta.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/c610e7dc-e905-4128-841c-260b039bd47c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/a9aba0dd-ffa0-4755-ae47-1f3af96f0b32%40googlegroups.com.
Done: https://github.com/psr-i18n-wg/message-translation/blob/master/message-translation-draft.mdAbout experience Larry mentioned:1. I'm maintaining Yii i18n/L10N layer.2. Had experience with Android.3. Native Russian speaker so know about complicated plurals.