How to quickly grab the latest localizations
I have a multilingual forum that currently supports 15 languages and will probably support more in the future. Now that the locales are being regularly updated, I was wondering if there was an easy way for me to download the updates. On the addons site, the file names seem to be versionned, so I don't think I can make a script to wget and unzip them. On Transifex, it looks like they require additional processing before being used, as there are files in the addons download that aren't present in Transifex.
Any ideas on the best way to do this?
Best Answer
-
Bleistivt Moderator
http://vanillaforums.org/addon.json/vf_zh_tw-locale
The "File" field shows the actual filename of the latest revision:
{ ... "AddonVersionID":3252, "File":"~cf\/addons\/8LQ2S09WFWMV.zip", "Version":"2014.11.03p1348", ... }
So you can directly download it from
https://us.v-cdn.net/5018160/uploads/addons/8LQ2S09WFWMV.zipBut yes, a little bit of scripting would be required.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
2
Answers
http://vanillaforums.org/addon.json/vf_zh_tw-locale
The "File" field shows the actual filename of the latest revision:
So you can directly download it from
https://us.v-cdn.net/5018160/uploads/addons/8LQ2S09WFWMV.zip
But yes, a little bit of scripting would be required.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Bleistivt Couldn't you just use the 'Url' field a few lines down?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Yes, we learn
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Great, thanks. I'll see if I can write a shell script for this and I'll post it here when it's done.
Updated code to not use fopen:
Symlink the locales repo on your web server. Then all you need to do is
git pull
.That'd work if the repo was up-to-date. I'm pointing my localizers to Vanilla's Transifex to help out, and I'd like to be at most a day or two behind.