From 173699d5683605e72267b24a248085c2abccc38f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 29 Jul 2015 18:53:25 +1200 Subject: Rename Chinese language file --- web/app.js | 4 +-- web/l10n/cn.js | 86 ---------------------------------------------------------- web/l10n/zh.js | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 web/l10n/cn.js create mode 100644 web/l10n/zh.js (limited to 'web') diff --git a/web/app.js b/web/app.js index ed04f3ece..c1fe8b0a6 100644 --- a/web/app.js +++ b/web/app.js @@ -20,7 +20,6 @@ Ext.Loader.setConfig({ { var availableLanguages = { - 'cn': '中文', 'de': 'Deutsch', 'en': 'English', 'es': 'Español', @@ -28,7 +27,8 @@ Ext.Loader.setConfig({ 'pl': 'Polski', 'pt': 'Português', 'ru': 'Русский', - 'th': 'ไทย' + 'th': 'ไทย', + 'zh': '中文' }; var language = Ext.Object.fromQueryString(window.location.search.substring(1)).locale; diff --git a/web/l10n/cn.js b/web/l10n/cn.js deleted file mode 100644 index cf76e4e35..000000000 --- a/web/l10n/cn.js +++ /dev/null @@ -1,86 +0,0 @@ -var strings = { - shared_loading: '加载', - shared_save: '保存', - shared_cancel: '取消', - shared_add: '新建', - shared_edit: '编辑', - shared_remove: '移除', - shared_remove_confirm: '要移除选项吗?', - shared_km: '千米', - shared_mi: '海里', - shared_kph: '千米/小时', - shared_mph: '每小时英里数', - shared_hour: '小时', - shared_minute: '分钟', - shared_second: '秒', - - error_title: '错误', - error_unknown: '未知错误', - - user_name: '名字', - user_email: '邮箱', - user_password: '密码', - user_admin: '管理员', - - login_title: '登录', - login_language: '语言', - login_register: '注册', - login_login: '登录', - login_failed: '邮箱地址或密码不对', - login_created: '新用户已经被注册了', - login_logout: '登出', - - device_dialog: '设备', - device_title: '设备', - device_name: '名字', - device_identifier: '标识符', - device_command: '指令', - - settings_title: '设置', - settings_user: '账户', - settings_server: '服务器', - settings_users: '用户', - settings_distance_unit: '距离', - settings_speed_unit: '速度', - - report_title: '报表', - report_device: '设备', - report_from: '开始', - report_to: '结束', - report_show: '显示', - report_clear: '清空', - - position_time: '时间', - position_valid: '有效', - position_latitude: '纬度', - position_longitude: '经度', - position_altitude: '海拔', - position_speed: '速度', - position_course: '航向', - position_address: '地址', - position_protocol: '协议', - - server_title: '服务器设置', - server_zoom: '缩放', - server_registration: '注册', - - map_title: '地图', - map_layer: '地图图层', - map_osm: 'OpenStreetMap 地图', - map_bing_road: 'Bing 公路线路地图', - map_bing_aerial: 'Bing 航测地图', - - state_title: '状态', - state_name: '参数', - state_value: '数值', - - command_title: '命令', - command_send: '发送', - command_type: '类型', - command_position_periodic: '位置获取', - command_position_stop: '位置停止', - command_engine_stop: '引擎熄火', - command_engine_resume: '引擎启动', - command_frequency: '频率', - command_unit: '单位' -}; diff --git a/web/l10n/zh.js b/web/l10n/zh.js new file mode 100644 index 000000000..cf76e4e35 --- /dev/null +++ b/web/l10n/zh.js @@ -0,0 +1,86 @@ +var strings = { + shared_loading: '加载', + shared_save: '保存', + shared_cancel: '取消', + shared_add: '新建', + shared_edit: '编辑', + shared_remove: '移除', + shared_remove_confirm: '要移除选项吗?', + shared_km: '千米', + shared_mi: '海里', + shared_kph: '千米/小时', + shared_mph: '每小时英里数', + shared_hour: '小时', + shared_minute: '分钟', + shared_second: '秒', + + error_title: '错误', + error_unknown: '未知错误', + + user_name: '名字', + user_email: '邮箱', + user_password: '密码', + user_admin: '管理员', + + login_title: '登录', + login_language: '语言', + login_register: '注册', + login_login: '登录', + login_failed: '邮箱地址或密码不对', + login_created: '新用户已经被注册了', + login_logout: '登出', + + device_dialog: '设备', + device_title: '设备', + device_name: '名字', + device_identifier: '标识符', + device_command: '指令', + + settings_title: '设置', + settings_user: '账户', + settings_server: '服务器', + settings_users: '用户', + settings_distance_unit: '距离', + settings_speed_unit: '速度', + + report_title: '报表', + report_device: '设备', + report_from: '开始', + report_to: '结束', + report_show: '显示', + report_clear: '清空', + + position_time: '时间', + position_valid: '有效', + position_latitude: '纬度', + position_longitude: '经度', + position_altitude: '海拔', + position_speed: '速度', + position_course: '航向', + position_address: '地址', + position_protocol: '协议', + + server_title: '服务器设置', + server_zoom: '缩放', + server_registration: '注册', + + map_title: '地图', + map_layer: '地图图层', + map_osm: 'OpenStreetMap 地图', + map_bing_road: 'Bing 公路线路地图', + map_bing_aerial: 'Bing 航测地图', + + state_title: '状态', + state_name: '参数', + state_value: '数值', + + command_title: '命令', + command_send: '发送', + command_type: '类型', + command_position_periodic: '位置获取', + command_position_stop: '位置停止', + command_engine_stop: '引擎熄火', + command_engine_resume: '引擎启动', + command_frequency: '频率', + command_unit: '单位' +}; -- cgit v1.2.3