<feed xmlns='http://www.w3.org/2005/Atom'>
<title>FreshRSS (Customized)/cli/i18n/I18nFile.php, branch 1.21.0</title>
<subtitle>Customized version of FreshRSS, a self-hosted RSS feed aggregator</subtitle>
<id>https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.21.0</id>
<link rel='self' href='https://git.rdnlsmith.com/fresh-rss-custom/atom?h=1.21.0'/>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/'/>
<updated>2023-02-06T14:42:53+00:00</updated>
<entry>
<title>More robust application of access permissions (#5062)</title>
<updated>2023-02-06T14:42:53+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2023-02-06T14:42:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=e899e4edd97c296a29b2a8da2c2e3b598622c36e'/>
<id>urn:sha1:e899e4edd97c296a29b2a8da2c2e3b598622c36e</id>
<content type='text'>
* More robust application of access permissions
We were in particular missing directory traversal `+X` in our current recommendations.
Extracted to own shell script so it can easily be invoked.
Update access permissions in Docker to account to be more robust.
#fix https://github.com/FreshRSS/FreshRSS/discussions/5037

* Minor simplification

* Restrict mkdir permissions
Default mkdir permissions are 0777, which is not good for security, so downgrade to 0770.</content>
</entry>
<entry>
<title>Add tests on i18n classes (#4756)</title>
<updated>2022-10-20T21:42:47+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2022-10-20T21:42:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=1f4e347cae51667e7cf5772aef55d274a39c8023'/>
<id>urn:sha1:1f4e347cae51667e7cf5772aef55d274a39c8023</id>
<content type='text'>
</content>
</entry>
<entry>
<title>i18n CLI improve parsing (#4197)</title>
<updated>2022-02-05T12:23:44+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2022-02-05T12:23:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=e28a2e320eb40c777d476bd0e6d06fe6b73d3455'/>
<id>urn:sha1:e28a2e320eb40c777d476bd0e6d06fe6b73d3455</id>
<content type='text'>
https://github.com/FreshRSS/FreshRSS/pull/3932#discussion_r800043744</content>
</entry>
<entry>
<title>i18n CLI compat PHP 7.0 (#4184)</title>
<updated>2022-01-31T13:22:50+00:00</updated>
<author>
<name>Alexandre Alapetite</name>
<email>alexandre@alapetite.fr</email>
</author>
<published>2022-01-31T13:22:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=66912420a10f6eb214ad2261a93db6d7c8f1f64a'/>
<id>urn:sha1:66912420a10f6eb214ad2261a93db6d7c8f1f64a</id>
<content type='text'>
Minor syntax change to pass the linting in PHP 7.0</content>
</entry>
<entry>
<title>Change i18n process (#4131)</title>
<updated>2022-01-08T13:00:26+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2022-01-08T13:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=127b7f0a3aad7012055c058e8aba0d27192a8cbc'/>
<id>urn:sha1:127b7f0a3aad7012055c058e8aba0d27192a8cbc</id>
<content type='text'>
Before, the ignore info were stored in a different file which was a bit cumbersome
for new comers. Now, this info is stored directly in the translation file as a
comment.

Before, there was no way of telling translators that a previously translated string
was in need of a new translation. Now, the dirty information is there to convey that
info.</content>
</entry>
<entry>
<title>Reformat i18n correctly (#2976)</title>
<updated>2020-05-15T15:31:21+00:00</updated>
<author>
<name>Marien Fressinaud</name>
<email>dev@marienfressinaud.fr</email>
</author>
<published>2020-05-15T15:31:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=8487fa6248d1d5dac81640de9c55c1eab9f324b3'/>
<id>urn:sha1:8487fa6248d1d5dac81640de9c55c1eab9f324b3</id>
<content type='text'>
* Ignore i18n gen.dir key

* Add a makefile target to update an i18n key

* Mark some i18n keys to ignore

* Reformat i18n files correctly

* Make i18n keys sort case-sensitive

Calling `make i18n-format` was always inverting 4 lines:

- gen.date.dec with gen.date.Dec
- and gen.date.nov with gen.date.Nov

I don't know why these particular lines and not the others, but it
appeared the sort function was case insensitive due to the
`SORT_FLAG_CASE` flag passed to the `ksort` function. Removing this flag
makes the calls to the formatter idempotent and more reliable.

Unfortunately it moves a lot of lines since the `_` character is
considered differently.

* Check i18n files are correctly formatted on Travis</content>
</entry>
<entry>
<title>Update i18n cli tools (#2673)</title>
<updated>2019-12-04T07:27:39+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2019-12-04T07:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=3e49b44839237693ce1a8151325942704917f6c6'/>
<id>urn:sha1:3e49b44839237693ce1a8151325942704917f6c6</id>
<content type='text'>
* Update i18n cli tools

Few things were bugging me when using the cli tool for i18n. So I've modified
the tools to be easier to use.

First, the tool automatically adds missing keys to all languages. This way, we
always have all keys in all languages.
Second, the tool detects all untranslated keys and adds automatically the todo
comment after the value.
Third, when adding a new key, the key is pushed to all languages at once. There
is no need to duplicate it manually. Thus making the duplication process obsolete.
Fourth, translation and ignore keys are manipulated at the same time. Thus we
don't have obsolete ignored strings anymore.

* Add i18n rules

I find that having the common rules in the Makefile is easier to use,
as long as you know they are here. As it is self documented, people
will see the new rules when using make.

* Use long parameters in Makefile

I find that using long parameters in scripts makes it easier to understand
what's going on. So I've switched all short parameters to long one.

* Format all i18n files

I've used the updated version of the cli tools to have some output
that can be consistently formated. This commit is a huge formating
commit. Nothing was added but some comments were removed in the
process.
</content>
</entry>
<entry>
<title>Fix quote escaping on CLI (#2355)</title>
<updated>2019-04-07T08:14:51+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2019-04-07T08:14:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=8be28399efb5bcc779e687148613fe427593bfa4'/>
<id>urn:sha1:8be28399efb5bcc779e687148613fe427593bfa4</id>
<content type='text'>
for translation manipulations</content>
</entry>
<entry>
<title>Add option to ignore keys in cli tool</title>
<updated>2018-03-11T09:53:32+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>github@ainw.org</email>
</author>
<published>2018-03-11T09:53:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=f4da01294023146cd1f4bc13f1ba5f77702bb41b'/>
<id>urn:sha1:f4da01294023146cd1f4bc13f1ba5f77702bb41b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add new tools to manipulate translations (#1818)</title>
<updated>2018-03-04T13:41:40+00:00</updated>
<author>
<name>Alexis Degrugillier</name>
<email>aledeg@users.noreply.github.com</email>
</author>
<published>2018-03-04T13:41:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rdnlsmith.com/fresh-rss-custom/commit/?id=67c173f79b011224c28ee7296484db065b2cd87a'/>
<id>urn:sha1:67c173f79b011224c28ee7296484db065b2cd87a</id>
<content type='text'>
I've added a tool to add a new translation for a specific key and language.
I've added a tool to format the i18n files.

This is one of the steps to improve the translation process.</content>
</entry>
</feed>
