These shell scripts can extract the strings from the php files in language packs and create a single PO file.
You can then use the PO file to check for mistakes in many available tools that knows PO.
Running PO converter in a terminal.
With the PO file you can check the translation in tools like Virtaal.
Can be found on [phpbb.com](https://www.phpbb.com/languages/] (also phpbb.com) If you run the all.sh script it will download the language packs for you so you dont have to do it manually
Run "./po.sh -h" for usage.
Usage: ./po.sh [-a <first folder> -b <second folder>] [-c]
Extracts strings from two phpBB language packs
and combines the strings in a PO file.
-a <folder> Content of unpacked language pack zip file
(usually the source language which is british_english_[VERSION]
-b <folder> Content of unpacked language pack zip file
(usually the translation you work on e.g. danish_[VERSION]
Source and translation should be the same version
-c Delete the temporary files and folder
(temp/, zip/, zipextracted/, po/)
-v Version information
Example:
./po.sh -a british_english_3_2_2 -b danish_3_2_2
Downloads 25 language pack zip files (those that are updated to phpBB 3.2.2), extracts them and uses po.sh to create PO files from all of them.
Example:
./all.sh
See what warning/error messages we can get. This we can use to improve the code or the language packs so it will hopefully give zero warnings/errors in the future versions
gettext
PyG3T
Toolkit
GUI tools:
Virtaal
Poedit
Qt Linguist
If you get "command not found" or "Permission denied" you might need to run these commands before you can execute the files
sudo chmod +x po.sh all.sh checkpo.sh
Question: Can i convert the PO file back to the PHP files? Answer: Nope.
php curl gettext ...(i will add more here when i find out what is needed to run the shell scripts)