Modified translation scripts and start page to use Crowdin

This commit is contained in:
Florian Rival
2014-12-25 16:08:10 +01:00
parent d0c7138359
commit 30a0b8c8f7
20 changed files with 25100 additions and 27402 deletions

View File

@@ -0,0 +1,4 @@
Thanks for considering help translate GDevelop to your language.
Translating GD is really simple, just go to the Crowdin project: https://crowdin.com/project/gdevelop
If you want more help, take a look at the wiki: http://wiki.compilgames.net/doku.php/en/game_develop/articles/translate_gd

View File

@@ -0,0 +1 @@
rem TODO

View File

@@ -0,0 +1,9 @@
#!/bin/sh
#Execute this script to update the translations (.mo files)
#using the .po files that you downloaded.
for D in `find . -type d`
do
if [ $D != "./en_GB" -a $D != "." ]; then
msgcat $D/GD.po | msgfmt -o $D/GD.mo -
fi
done

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<News>
<Version Major="3" Minor="5" Build="75" Revision="0"/>
<Info Info="La version 3.5.75 est disponible.&#x0A;&#x0A;Nouvelle action pour ouvrir une URL dans un navigateur.&#x0A;Correction d'un crash avec le test de collision pour les objets cartes de tuiles.&#x0A;Correction d'un bouton au comportement incorrect dans le ruban.&#x0A;&#x0A;Version 3.4.74:&#x0A;Game Develop s'appelle dor<EFBFBD>navant GDevelop! Si vous poss<73>dez des articles, sites web ou forums parlant de Game Develop, vous pouvez maintenant faire r<>f<EFBFBD>rence <20> GDevelop.&#x0A;Nouvel objet carte de tiles: cr<63>ez facilement des jeux bas<61>s sur des tiles ! (jeu natifs seulement)&#x0A;Correction des fonctions ne fonctionnant pas normalement avec plus d'une sc<73>ne ou des <20>v<EFBFBD>nements externes.&#x0A;Correction du renommage des objets apr<70>s leur ajout sur Linux.&#x0A;Correction des bugs graphiques pour le debugger et le suivi de performances sur Linux.&#x0A;Correction de l'affichage de barres d'outils sur Linux.&#x0A;Corrections de la condition de test des axes de joysticks.&#x0A;Correction d'un crash avec l'automatisme de recherche de chemin.&#x0A;Mise <20> jour de UglifyJS pour corriger des erreurs de minifications avec certains jeux.&#x0A;Ajout d'un lien pour t<>l<EFBFBD>charger Node.js en cas de besoin (requis pour la minification).&#x0A;Nouvel exemple Advanced Shape based Painter.&#x0A;Autres corrections mineures." Lien="http://compilgames.net"/>
<CommunityNews text="* GDevelop est le nouveau nom de Game Develop!&#x0A;&#x0A;* GDevApp est une web app de cr<63>ation de jeux bas<61>e sur GDevelop : venez essayer la plus avanc<6E>e des applications online de cr<63>ation de jeux. Compatible avec les tablettes et fournie avec des superbes packs de graphismes pr<70>-pr<70>par<61>s." link1="https://github.com/4ian/GD" linkLabel1="GDevelop sur GitHub" link2="https://gdevapp.com?utm_source=software&amp;utm_medium=link_fr&amp;utm_campaign=launch" linkLabel2="Tester GDevApp, la nouvelle app de cr<63>ation de jeux"/>
<Version Major="3" Minor="6" Build="76" Revision="0"/>
<Info Info="La version 3.6.76 est disponible.&#x0A;&#x0A;Am<EFBFBD>lioration de l'<27>diteur d'objets : les objets peuvent <20>tre gliss<73>s-depos<6F>s dans les groupes, le contenu des groupes est maintenant list<73>, les objets et groupes globaux sont maintenant en gras.&#x0A;La fen<65>tre de selection de condition/action a <20>t<EFBFBD> retravaill<6C>e pour <20>tre plus simple et claire.&#x0A;Ajout de l'Event Store: parcourez les mod<6F>les d'<27>v<EFBFBD>nements cr<63><72>s par les utilisateurs de GDevApp.com, personnalisez et ajoutez les <20> vos jeux. Et double cliquez sur un mod<6F>le ins<6E>r<EFBFBD> dans un jeu pour l'<27>diter m<>me apr<70>s insertion.&#x0A;Ajout des Groupes d'<27>v<EFBFBD>nements, qui peuvent <20>tre utilis<69>s pour organiser les <20>v<EFBFBD>nements.&#x0A;Ajout d'un support exp<78>rimental des <20>v<EFBFBD>nements Javascript, pour les jeux HTML5 (voir les exemples).&#x0A;Ajout du support du format JSON pour charger et enregistrer les jeux.&#x0A;Nouvelle page de d<>marrage, correction du mauvais alignement sur Ubuntu.&#x0A;Correction d'une importante fuite de m<>moire lors du chargement des textures.&#x0A;Changement du comportement du clic molette dans l'<27>diteur du sc<73>ne : il faut maintenant rester appuyer pour se d<>placer.&#x0A;Les objets se d<>pla<6C>ant sur des plateformes sont maintenant s<>par<61>s des platformes si ils sont coinc<6E>s dedans.&#x0A;Ajout d'un outil de remplissage et des boutons d'annulation dans l'<27>diteur des objets Carte de Tuiles.&#x0A;Corrections et am<61>lioration de performances pour les objets Carte de Tuiles.&#x0A;Possibilit<69> de d<>caler l'origine de la grille dans l'<27>diteur de sc<73>ne.&#x0A;Correction de l'affichage des curseurs sur Ubuntu dans l'<27>diteur de sc<73>ne.&#x0A;Correction de la condition testant la visibilit<69> d'un calque.&#x0A;Changement des titres des conditions li<6C>s <20> la souris pour mettre en avant le support des <20>crans tactiles.&#x0A;Ajout des expressions ScreenWidth et ScreenHeight pour les jeux HTML5.&#x0A;Correction des expressions SceneWindowWidth et SceneWindowHeight pour les jeux HTML5.&#x0A;Lors de l'ajout de plusieurs images, elles sont maintenant mises dans l'ordre alphab<61>tique sur Ubuntu, dans l'<27>diteur d'objet Sprite.&#x0A;Correction des couleurs des param<61>tres dans l'<27>diteur d'<27>v<EFBFBD>nemements.&#x0A;Corrections mineurs et am<61>liorations.&#x0A;Passage de la licence LGPL vers la licence MIT pour la majeur partie du code. Enjoy!" Lien="http://compilgames.net"/>
<CommunityNews text="GDevApp est une web app de cr<63>ation de jeux bas<61>e sur GDevelop : venez essayer la plus avanc<6E>e des applications online de cr<63>ation de jeux. Compatible avec les tablettes et fournie avec des superbes packs de graphismes pr<70>-pr<70>par<61>s." link1="https://github.com/4ian/GD" linkLabel1="GDevelop sur GitHub" link2="https://gdevapp.com?utm_source=software&amp;utm_medium=link_fr&amp;utm_campaign=launch" linkLabel2="Tester GDevApp, la nouvelle app de cr<63>ation de jeux"/>
</News>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<News>
<Version Major="3" Minor="5" Build="75" Revision="0"/>
<Info Info="Version 3.5.75 is available.&#x0A;&#x0A;New action to open an URL in a browser.&#x0A;Fixed crash with collision condition for TileMap object.&#x0A;Fixed button with incorrect behavior in the ribbon.&#x0A;&#x0A;Version 3.5.74:&#x0A;Game Develop is now called GDevelop! If you have any article, website or forum related to Game Develop, please rename any mention of “Game Develop” to “GDevelop”.&#x0A;New Tilemap object: easily create tile based games with tilemaps! (Native games only)&#x0A;Fix functions not working properly with multiples scenes or external events.&#x0A;Fix object not renamed properly after it was added (Linux).&#x0A;Fix debugger and profiler graphical glitches.&#x0A;Fix some toolbars not rendered properly on Linux.&#x0A;Fix conditions testing Joysticks' axis values.&#x0A;Fix crash with the pathfinding automatism.&#x0A;Updated UglifyJS to fix minification issues with HTML5 games.&#x0A;Added link to download Node.js if needed for minification of games.&#x0A;New Advanced Shape based Painter example.&#x0A;Other minor bugfixes." Lien="http://compilgames.net"/>
<CommunityNews text=" * GDevelop is the new name of Game Develop!&#x0A;&#x0A; * GDevApp is an online game creator based on GDevelop and is available since a few days: Go try the most advanced game creation web app. Compatible with tablets and bundled with awesome graphics assets." link1="https://github.com/4ian/GD" linkLabel1="GDevelop on GitHub" link2="https://gdevapp.com?utm_source=software&amp;utm_medium=link_en&amp;utm_campaign=launch" linkLabel2="Try GDevApp, the online game creator based on GD"/>
<Version Major="3" Minor="6" Build="76" Revision="0"/>
<Info Info="Version 3.6.76 is available.&#x0A;&#x0A;Improved object editor: objects can be dragged to groups, the content of a group is now displayed in the list, global objects and groups are now shown in bold.&#x0A;Reworked the window to select a condition or an action to be more simple and clear.&#x0A;Added the Event Store: Browse the events templates made by users from GDevApp.com, customize and insert them in your game. And double click on a template inserted in your game to edit it even after its insertion.&#x0A;Added Event Groups, that can be used to organize events.&#x0A;Added experimental support for Javascript events, for HTML5 games (see examples).&#x0A;Added support for saving (and loading) games to JSON files.&#x0A;New start page, and fixed bad alignment on Ubuntu.&#x0A;Fixed severe memory leaks when loading textures.&#x0A;Changed the middle click behavior: the middle button must be kept pressed to move in the scene editor.&#x0A;Platformer characters are pushed out of platforms if stuck inside.&#x0A;Added a Fill tool and Undo/Redo buttons in the editor of Tile Map objects.&#x0A;Various fixes and performance improvements for Tile Map objects.&#x0A;Added optional offset for the grid in the scene editor.&#x0A;Fixed bad cursor shown on Ubuntu in the scene editor.&#x0A;Fixed condition testing for the visibilty of a layer.&#x0A;Changed titles of some mouse related conditions to highlight the support of touchscreens.&#x0A;Added ScreenWidth and ScreenHeight expressions for HTML5 games.&#x0A;Fixed SceneWindowWidth and SceneWindowHeight for HTML5 games.&#x0A;Ensure that when multiple images are added to a sprite object on Ubuntu, the insertion is made in alphabetical order.&#x0A;Fixed syntax highlighting in the events editor.&#x0A;Various minor fixes and improvements.&#x0A;Switched from LGPL to MIT license for most codebase. Enjoy!" Lien="http://compilgames.net"/>
<CommunityNews text="GDevApp is an online game creator based on GDevelop: Go try the most advanced game creation web app. Compatible with tablets and bundled with awesome graphics assets." link1="https://github.com/4ian/GD" linkLabel1="GDevelop on GitHub" link2="https://gdevapp.com?utm_source=software&amp;utm_medium=link_en&amp;utm_campaign=launch" linkLabel2="Try GDevApp, the online game creator based on GD"/>
</News>

File diff suppressed because it is too large Load Diff

View File

@@ -243,7 +243,7 @@ BaseStartHerePage::BaseStartHerePage(wxWindow* parent, wxWindowID id, const wxPo
flexGridSizer77->Add(newsLink2, 0, wxLEFT|wxRIGHT, 5);
wxFlexGridSizer* bottomSizer = new wxFlexGridSizer(0, 5, 0, 0);
wxFlexGridSizer* bottomSizer = new wxFlexGridSizer(0, 7, 0, 0);
bottomSizer->SetFlexibleDirection( wxBOTH );
bottomSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
@@ -275,6 +275,17 @@ BaseStartHerePage::BaseStartHerePage(wxWindow* parent, wxWindowID id, const wxPo
bottomSizer->Add(m_hyperLink57, 0, wxRIGHT|wxTOP|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5);
localeBmp = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize(-1,-1), 0 );
bottomSizer->Add(localeBmp, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4);
m_hyperLink572 = new wxHyperlinkCtrl(this, wxID_ANY, _("Help to translate GD in your language"), wxT("https://crowdin.com/project/gdevelop"), wxDefaultPosition, wxSize(-1,-1), wxHL_DEFAULT_STYLE);
m_hyperLink572->SetNormalColour(wxColour(wxT("#0000FF")));
m_hyperLink572->SetHoverColour(wxColour(wxT("#0000FF")));
m_hyperLink572->SetVisitedColour(wxColour(wxT("#FF0000")));
bottomSizer->Add(m_hyperLink572, 0, wxRIGHT|wxTOP|wxBOTTOM|wxALIGN_CENTER_VERTICAL, 5);
SetBackgroundColour(wxColour(wxT("rgb(255,255,255)")));
SetSizeHints(700,500);
if ( GetSizer() ) {

View File

@@ -48,6 +48,8 @@ protected:
wxHyperlinkCtrl* donateLinkBt;
wxStaticBitmap* githubBmp;
wxHyperlinkCtrl* m_hyperLink57;
wxStaticBitmap* localeBmp;
wxHyperlinkCtrl* m_hyperLink572;
protected:
virtual void OnLastProject1Click(wxHyperlinkEvent& event) { event.Skip(); }

View File

@@ -27,6 +27,7 @@ StartHerePage::StartHerePage(wxWindow* parent, MainFrame & mainEditor_)
latestProjectsBmp->SetBitmap(gd::SkinHelper::GetIcon("open", 24));
logoBmp->SetBitmap(wxBitmap("res/GD-logo-simple.png", wxBITMAP_TYPE_ANY));
localeBmp->SetBitmap(wxBitmap("res/locale.png", wxBITMAP_TYPE_ANY));
donateBmp->SetBitmap(wxBitmap("res/hearticon.png", wxBITMAP_TYPE_ANY));
githubBmp->SetBitmap(wxBitmap("res/github16.png", wxBITMAP_TYPE_ANY));

View File

@@ -1,18 +0,0 @@
About translations
==================
Translations are made using [PoEdit](http://poedit.net/).
PoEdit can search for sources files in directories and update translations
catalogs from theses sources files. Alas, there is no way to exclude a directory.
Thus, we're using xgettext, with the script "TranslationsUpdate.bat" or "TranslationsUpdate.sh",
to create a .POT file from sources, and we can then update catalogs in PoEdit by using this .POT file.
To generate the .POT file, just do on Linux, using a terminal:
sh TranslationsUpdate.sh
or on Windows using the command line:
TranslationsUpdate.bat

View File

@@ -1,4 +0,0 @@
Each time an header is modified in GDL, or when a library is updated,
you have to ensure that headers files in "include" directory of GDevelop
are up-to-date (if it is not the case, compilation in GD will certainly fail).
Run the appropriate script to automatically update headers of GD.

View File

@@ -1,18 +0,0 @@
@echo off
echo Listing all sources files...
dir ..\*.cpp /L /b /s |find /v /i "\bin\" > %TEMP%\listfile.txt
dir ..\*.h /L /b /s |find /v /i "\bin\" >> %TEMP%\listfile.txt
dir ..\..\GDCpp\GDCpp\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\..\GDCpp\GDCpp\*.h /L /B /S >> %TEMP%\listfile.txt
dir ..\..\GDJS\GDJS\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\..\GDJS\GDJS\*.h /L /B /S >> %TEMP%\listfile.txt
dir ..\..\Extensions\*.cpp /L /B /S |find /v /i "\TileMapObject\" >> %TEMP%\listfile.txt
dir ..\..\Extensions\*.h /L /B /S |find /v /i "\TileMapObject\" >> %TEMP%\listfile.txt
dir ..\..\Core\GDCore\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\..\Core\GDCore\*.h /L /B /S >> %TEMP%\listfile.txt
echo Generating .POT file...
xgettext --from-code iso-8859-1 -o useMeToUpdateCatalogsWithPoEdit.pot --c++ --no-wrap -f %TEMP%\listfile.txt -k_
echo .POT file generated: Update now .po catalogs using poEdit (Open .po catalog with PoEdit, and choose Catalog:Update from .POT file)

View File

@@ -1,19 +0,0 @@
#Launch this script to generate the .POT file used by PoEdit
#to update the strings to be translated.
echo "Listing all sources files..."
find .. -name '*.cpp' > /tmp/listfile.txt
find .. -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../../GDCpp/GDCpp/ -name '*.cpp' >> /tmp/listfile.txt
find ../../GDCpp/GDCpp/ -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../../GDJS/GDJS/ -name '*.cpp' >> /tmp/listfile.txt
find ../../GDJS/GDJS/ -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../../Extensions/ -name '*.cpp' | grep -v '/TileMapObject/' >> /tmp/listfile.txt
find ../../Extensions/ -name '*.h' -o -name "*.hpp" | grep -v '/TileMapObject/' >> /tmp/listfile.txt
find ../../Core/GDCore -name '*.cpp' >> /tmp/listfile.txt
find ../../Core/GDCore -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
echo "Generating .POT file..."
xgettext --from-code iso-8859-1 -o useMeToUpdateCatalogsWithPoEdit.pot --c++ --no-wrap -f /tmp/listfile.txt -k_
echo ".POT file generated: Update now .po catalogs using poEdit (Open .po catalog with PoEdit, and choose Catalog:Update from .POT file)"

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -0,0 +1,18 @@
@echo off
echo Listing all sources files...
dir ..\IDE\*.cpp /L /b /s |find /v /i "\bin\" > %TEMP%\listfile.txt
dir ..\IDE\*.h /L /b /s |find /v /i "\bin\" >> %TEMP%\listfile.txt
dir ..\GDCpp\GDCpp\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\GDCpp\GDCpp\*.h /L /B /S >> %TEMP%\listfile.txt
dir ..\GDJS\GDJS\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\GDJS\GDJS\*.h /L /B /S >> %TEMP%\listfile.txt
dir ..\Extensions\*.cpp /L /B /S |find /v /i "\TileMapObject\" >> %TEMP%\listfile.txt
dir ..\Extensions\*.h /L /B /S |find /v /i "\TileMapObject\" >> %TEMP%\listfile.txt
dir ..\Core\GDCore\*.cpp /L /B /S >> %TEMP%\listfile.txt
dir ..\Core\GDCore\*.h /L /B /S >> %TEMP%\listfile.txt
echo Generating .POT file...
xgettext --from-code iso-8859-1 -o source.pot --c++ --no-wrap -f %TEMP%\listfile.txt -k_
echo source.pot file generated and ready to be sent to Crowdin or used in a translation software like PoEdit.

View File

@@ -0,0 +1,19 @@
#Launch this script to generate the .POT file used
#to update the strings to be translated.
echo "Listing all sources files..."
find ../IDE -name '*.cpp' > /tmp/listfile.txt
find ../IDE -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../GDCpp/GDCpp/ -name '*.cpp' >> /tmp/listfile.txt
find ../GDCpp/GDCpp/ -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../GDJS/GDJS/ -name '*.cpp' >> /tmp/listfile.txt
find ../GDJS/GDJS/ -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
find ../Extensions/ -name '*.cpp' | grep -v '/TileMapObject/' >> /tmp/listfile.txt
find ../Extensions/ -name '*.h' -o -name "*.hpp" | grep -v '/TileMapObject/' >> /tmp/listfile.txt
find ../Core/GDCore -name '*.cpp' >> /tmp/listfile.txt
find ../Core/GDCore -name '*.h' -o -name "*.hpp" >> /tmp/listfile.txt
echo "Generating .POT file..."
xgettext --from-code iso-8859-1 -o source.pot --c++ --no-wrap -f /tmp/listfile.txt -k_
echo "source.pot file generated and ready to be sent to Crowdin or used in a translation software like PoEdit."

View File

@@ -4,3 +4,4 @@
* **ReleaseProcedure.sh**: compiles and package GD for Ubuntu (see *Binaries/Packaging*).
* **CopyWindowsToLinuxReleaseFiles.sh**: Copy all files in *Binaries/Output/Release_Windows* to *Binaries/Output/Release_Linux*. Call it after any change in *Binaries/Output/Release_Windows*.
* **GenerateAllDocs.[bat|sh]**: Call doxygen and yuidoc to generate all the documentations into *docs* folder.
* **ExtractTranslations.[bat|sh]**: Create the *source.pot* file containing the strings to be translated using [Crowdin](https://crowdin.com/project/gdevelop).

21898
scripts/source.pot Normal file

File diff suppressed because it is too large Load Diff