标签:
在这篇文章中,我们将介绍如何本地化一个Scope。本地化对有些Scope是非常重要的。正确地使用本地化,可以使得我们的Scop很方便地支持多个国家的语言。
// Register a category for the forecast auto forecast_cat = reply->register_category("forecast", _("7 day forecast"), "", sc::CategoryRenderer(WEATHER_TEMPLATE));
#: ../data/com.ubuntu.developer.liu-xiao-guo.localizedscope_localizedscope.ini.in.h:2 msgid "This is a Localizedscope scope" msgstr ""
charset=CHARSET
charset=UTF-8
# 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: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-12-22 12:13+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" #: ../src/scope/query.cpp:144 msgid "7 day forecast" msgstr "7天天气预测" #: ../data/com.ubuntu.developer.liu-xiao-guo.localizedscope_localizedscope.ini.in.h:1 msgid "Localizedscope Scope" msgstr "本地化Scope" #: ../data/com.ubuntu.developer.liu-xiao-guo.localizedscope_localizedscope.ini.in.h:2 msgid "This is a Localizedscope scope" msgstr "这是一个本地化Scope"
标签:
原文地址:http://blog.csdn.net/ubuntutouch/article/details/42077993