标签:des style blog http io ar color os sp
在这篇文章中,我们来介绍怎么在Ubuntu OS上本地化一个应用。本地化对很多的应用很重要。我们重点介绍怎么把应用本地化为中文。
# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-11-20 12:05+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../app/ui/HelloTab.qml:6 msgid "Hello.." msgstr "您好" #: ../app/ui/HelloTab.qml:18 msgid "Hello World" msgstr "您好,世界" #: ../app/ui/HelloTab.qml:26 msgid "You can change the Tab from Page title above." msgstr "您可以从页面的标题上改变标签" #: ../app/ui/WorldTab.qml:6 msgid "..World!" msgstr "..世界!" #: ../app/ui/WorldTab.qml:18 msgid "WorldTab" msgstr "世界标签" #: /home/liuxg/release/build-localizedqml-Desktop-Default/po/localizedqml.desktop.in.h:1 msgid "LocalizeQml" msgstr "本地化QML"
Tab { title: i18n.tr("Hello..") page: Page { Column { spacing: units.gu(2) anchors.centerIn: parent HelloComponent { objectName: "helloTab_HelloComponent" anchors.horizontalCenter: parent.horizontalCenter text: i18n.tr("Hello World") } Label { objectName: "helloTab_label" anchors.horizontalCenter: parent.horizontalCenter text: i18n.tr("You can change the Tab from Page title above.") } } } }
Tab { title: i18n.tr("Hello..") page: Page { Column { spacing: units.gu(2) anchors.centerIn: parent HelloComponent { objectName: "helloTab_HelloComponent" anchors.horizontalCenter: parent.horizontalCenter text: i18n.tr("Hello World") } Label { objectName: "helloTab_label" anchors.horizontalCenter: parent.horizontalCenter text: i18n.tr("You can change the Tab from Page title above.") } Button { text: i18n.tr("Press me") } } } }
# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-11-20 12:05+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../app/ui/HelloTab.qml:6 msgid "Hello.." msgstr "您好" #: ../app/ui/HelloTab.qml:18 msgid "Hello World" msgstr "您好,世界" #: ../app/ui/HelloTab.qml:26 msgid "You can change the Tab from Page title above." msgstr "您可以从页面的标题上改变标签" #: ../app/ui/WorldTab.qml:6 msgid "..World!" msgstr "..世界!" #: ../app/ui/WorldTab.qml:18 msgid "WorldTab" msgstr "世界标签" #: /home/liuxg/release/build-localizedqml-Desktop-Default/po/localizedqml.desktop.in.h:1 msgid "LocalizeQml" msgstr "本地化QML" #: ../app/ui/HelloTab.qml:30 msgid "Press me" msgstr "按一下我"
标签:des style blog http io ar color os sp
原文地址:http://blog.csdn.net/ubuntutouch/article/details/41576843