update translation file
This commit is contained in:
parent
56bc529262
commit
dac12ca2be
25
0010-update-translation-file.patch
Normal file
25
0010-update-translation-file.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 020c2d7b007d457fa7d728eea9dde2eabc385681 Mon Sep 17 00:00:00 2001
|
||||
From: tanyulong2021 <tanyulong@kylinos.cn>
|
||||
Date: Wed, 13 Jul 2022 15:13:26 +0800
|
||||
Subject: [PATCH] update translation file
|
||||
|
||||
---
|
||||
src/informationwidget.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/informationwidget.cpp b/src/informationwidget.cpp
|
||||
index 7d4578b..d83eb3c 100644
|
||||
--- a/src/informationwidget.cpp
|
||||
+++ b/src/informationwidget.cpp
|
||||
@@ -230,7 +230,7 @@ void Information::onSetForecastWeather(ForecastWeather forecastweather)
|
||||
|
||||
//获取星期
|
||||
QDateTime current_date_time = QDateTime::fromString(forecastweather.dateTime,"yyyy-MM-dd");//将从服务器上获取到的日期处理成特定格式
|
||||
- QString current_week_1 = "今天";//current_date_time.toString("ddd");
|
||||
+ QString current_week_1 = tr("Today");//current_date_time.toString("ddd");
|
||||
QString current_week_2 = current_date_time.addDays(+1).toString("ddd");
|
||||
QString current_week_3 = current_date_time.addDays(+2).toString("ddd");
|
||||
QString current_week_4 = current_date_time.addDays(+3).toString("ddd");
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: indicator-china-weather
|
||||
Version: 3.1.0
|
||||
Release: 16
|
||||
Release: 17
|
||||
Summary: The weather data are from the heweather API s6 version.
|
||||
License: GPL-3.0+
|
||||
URL: https://github.com/UbuntuKylin/indicator-china-weather
|
||||
@ -31,6 +31,7 @@ patch6: 0006-Hide-tray-icon-in-case-of-network-exception.patch
|
||||
patch7: 0007-Repair-menu-button-hover-style-exception.patch
|
||||
patch8: 0008-Solve-the-problem-of-button-backlighting.patch
|
||||
patch9: 0009-Update-ts-file-and-add-today-translation.patch
|
||||
patch10:0010-update-translation-file.patch
|
||||
|
||||
%description
|
||||
Indicator that displays China weather information
|
||||
@ -50,6 +51,7 @@ patch9: 0009-Update-ts-file-and-add-today-translation.patch
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default indicator-china-weather.pro
|
||||
@ -81,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_datadir}/man/man1/indicator-china-weather.1.gz
|
||||
|
||||
%changelog
|
||||
* Wed Jul 13 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.0-17
|
||||
- update translation file
|
||||
|
||||
* Wed Jul 13 2022 tanyulong <tanyulong@kylinos.cn> - 3.1.0-16
|
||||
- Update ts file and add today translation
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user