Updated transifex config #800

Merged
JeroenED merged 1 commits from task/cookienotice-tx into develop 2019-01-30 14:24:40 +01:00
JeroenED commented 2019-01-30 14:11:05 +01:00 (Migrated from github.com)

Since the issues with the cookienotice addon I tried to check other issues and found that the transifex config was outdated. Herewith a PR that should fix this config. It is however autogenerated with this script.

Hope this helps fixing the issue.

If you want this script can go into the main repository for easy generation.

# this script outputs the config to stdout. Use redirection to write to a file

cd /path/to/friendica/addon

echo "[main]
host = https://www.transifex.com
"

for folder in * ; do
	if [[ -s ${folder}/lang/C/messages.po ]]; then

	echo "[friendica.addon_${folder}_messagespo]
file_filter = ${folder}/lang/<lang>/messages.po
source_file = ${folder}/lang/C/messages.po
source_lang = en
type = PO
"
	fi;
done;
Since the issues with the cookienotice addon I tried to check other issues and found that the transifex config was outdated. Herewith a PR that should fix this config. It is however autogenerated with this script. Hope this helps fixing the issue. If you want this script can go into the main repository for easy generation. ````shell # this script outputs the config to stdout. Use redirection to write to a file cd /path/to/friendica/addon echo "[main] host = https://www.transifex.com " for folder in * ; do if [[ -s ${folder}/lang/C/messages.po ]]; then echo "[friendica.addon_${folder}_messagespo] file_filter = ${folder}/lang/<lang>/messages.po source_file = ${folder}/lang/C/messages.po source_lang = en type = PO " fi; done; ````
MrPetovan (Migrated from github.com) approved these changes 2019-01-30 14:24:26 +01:00
tobiasd commented 2019-01-30 14:40:07 +01:00 (Migrated from github.com)

Once upon a time I tried their client, but it did not fit into my workflow ;-) thanks for fixing it anyhow!

Once upon a time I tried their client, but it did not fit into my workflow ;-) thanks for fixing it anyhow!
tobiasd commented 2019-01-30 14:54:09 +01:00 (Migrated from github.com)

Next try ;-)

You need to write more addons, so I don't forget the handling of the obscurer corners of Transifex...

Next try ;-) You need to write more addons, so I don't forget the handling of the obscurer corners of Transifex...
Sign in to join this conversation.
No description provided.