My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Qt  
Qt localization file example
Updated Mar 22, 2011 by phong.le...@gtempaccount.com

Introduction

Get Localization has full support for Qt localization file including extracomment for context information and plural form.

Following is an example of an Qt localization file

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
   <message>
        <source>New tweets</source>
        <extracomment>This is just an extra comment</extracomment>
        <translation type="unfinished">This is the master string</translation>
    </message>
	<message>
        <source>Another tweet</source>        
        <translation type="obsolete">This string is obsolete</translation>
    </message>
</context>

<context>
	<name>Another context</name>
	<message numerus="yes">
        <location filename="../findsubtitles/findsubtitleswindow.cpp" line="522"/>
        <source>%1 subtitle(s) extracted</source>
        <translation>
            <numerusform>%1 subtitle extracted</numerusform>
            <numerusform>%1 subtitles extracted</numerusform>
        </translation>
    </message>
</context>
</TS>
Powered by Google Project Hosting