Langpacks/en: Difference between revisions

From Miranda NG
Langpacks/en
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:


== How to translate ==
== How to translate ==
'''We expect you have checkout of whole Miranda NG SVN already - if you don't want whole repository, you need at least both '''langpacks''' and '''tools''' folders in same folder on your disk.'''
<div style="overflow:auto; height:auto;">
{{Message|message=You are expected to have the whole Miranda NG SVN checked out – if you don't want the whole repository, you need at least both '''langpacks''' and '''tools''' folders in the same folder on your disk.'''}}
</div>


'''Notes:'''
'''Notes:'''
* All files of your langpack must be saved in UTF-8 codepage
* All files of your langpack must be saved in UTF-8 codepage
* Refresh.bat must be started from /langpacks/<language>/ folder  
* <tt>Refresh.bat</tt> must be started from <tt>/langpacks/<language>/</tt> folder
* Final langpack_<language>.txt is automatically created after running Refresh.bat
* Final <tt>langpack_<language>.txt</tt> is automatically created after running <tt>Refresh.bat</tt>


=== Create of new langpack: ===
=== Creating a new langpack ===
# create new folder for langpack in "langpacks" folder
# Create new folder for langpack in "langpacks" folder
# create subfolders there: Plugins, Untranslated and file =HEAD=.txt (look at finished langpacks to know what should be in this file)
# Create subfolders there: <tt>Plugins</tt>, <tt>Untranslated</tt> and file <tt>=HEAD=.txt</tt> (see the existing langpacks to know what should be in this file)
# take old langpack file (e.g. from Miranda IM, it must be previously converted to UTF-8) and put it somewhere (e.g. into new subfolder Deprecated)
# Take an old langpack file (e. g. from Miranda IM, it must be previously converted to UTF-8) and put it somewhere (e. g. into new subfolder <tt>Deprecated</tt>)
# copy Refresh.bat from /langpacks/czech/ and edit it - change "czech" to name of your langpack folder and change path to the old langpack
# copy <tt>Refresh.bat</tt> from <tt>/langpacks/czech/</tt> and edit it change "czech" to name of your langpack folder and change path to the old langpack
# run Refresh.bat -> it will create all files which will now contain translation from your old langpack
# Run <tt>Refresh.bat</tt> it will create all files which will now contain translation from your old langpack


=== Updating langpack: ===
=== Updating langpack ===
# write your translations into =CORE=.txt file and files inside Plugins folder (dont't touch Untranslated folder, those files have only informative character of what translations are missing)
# Write your translations into =CORE=.txt file and files inside Plugins folder (dont't touch Untranslated folder, those files have only informative character of what translations are missing)
# run Refresh.bat which will redistribute your changes to other files
# Run Refresh.bat which will redistribute your changes to other files


=== After english langpack update: ===
=== After english langpack update ===
# run Refresh.bat which will apply changes to your files
# Run Refresh.bat which will apply changes to your files
# use TortoiseSvn / Check for modifications context menu item and check changed files there to easily correct typos or translation changes
# Use TortoiseSVN / ''Check for modifications'' context menu item and check changed files there to easily correct typos or translation changes
# run Refresh.bat which will redistribute your changes to other files
# Run Refresh.bat which will redistribute your changes to other files

Revision as of 11:04, 9 July 2013

Todo: We need a detailed article about Miranda NG translation.

To change Miranda's interface language you need to put a langpack into main Miranda NG folder and restart the program. A language pack (langpack) is a plain text file named langpack_*.txt which contains translation for all the strings Miranda and plugins use.

Remove all langpack_*.txt files from Miranda NG folder to set the English language for Miranda's interface.

There is also LangMan plugin to help you manage langpacks of different languages.

Download

Template:Langpacks list

How to translate

You are expected to have the whole Miranda NG SVN checked out – if you don't want the whole repository, you need at least both langpacks and tools folders in the same folder on your disk.

Notes:

  • All files of your langpack must be saved in UTF-8 codepage
  • Refresh.bat must be started from /langpacks/<language>/ folder
  • Final langpack_<language>.txt is automatically created after running Refresh.bat

Creating a new langpack

  1. Create new folder for langpack in "langpacks" folder
  2. Create subfolders there: Plugins, Untranslated and file =HEAD=.txt (see the existing langpacks to know what should be in this file)
  3. Take an old langpack file (e. g. from Miranda IM, it must be previously converted to UTF-8) and put it somewhere (e. g. into new subfolder Deprecated)
  4. copy Refresh.bat from /langpacks/czech/ and edit it – change "czech" to name of your langpack folder and change path to the old langpack
  5. Run Refresh.bat – it will create all files which will now contain translation from your old langpack

Updating langpack

  1. Write your translations into =CORE=.txt file and files inside Plugins folder (dont't touch Untranslated folder, those files have only informative character of what translations are missing)
  2. Run Refresh.bat which will redistribute your changes to other files

After english langpack update

  1. Run Refresh.bat which will apply changes to your files
  2. Use TortoiseSVN / Check for modifications context menu item and check changed files there to easily correct typos or translation changes
  3. Run Refresh.bat which will redistribute your changes to other files