From 7f79f09491221b680c2ae5af5a88c14804d07087 Mon Sep 17 00:00:00 2001 From: lfl <15188787339@163.com> Date: Wed, 4 Sep 2024 11:44:41 +0800 Subject: [PATCH] =?UTF-8?q?string=20Resource=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/constants/Constants.ets | 10 ---------- entry/src/main/ets/pages/ConversionPage.ets | 2 +- entry/src/main/ets/pages/IntroductionPage.ets | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/entry/src/main/ets/common/constants/Constants.ets b/entry/src/main/ets/common/constants/Constants.ets index 119748c..533443c 100644 --- a/entry/src/main/ets/common/constants/Constants.ets +++ b/entry/src/main/ets/common/constants/Constants.ets @@ -20,16 +20,6 @@ export default class Constants { */ static readonly FULL_PERCENT: string = '100%'; - /** - * pixel conversion - */ - static readonly PIXEL_CONVERSION: string = '像素转换'; - - /** - * pixel introduction - */ - static readonly PIXEL_INTRODUCTION: string = '像素介绍'; - /** * IntroductionPage URL */ diff --git a/entry/src/main/ets/pages/ConversionPage.ets b/entry/src/main/ets/pages/ConversionPage.ets index 9179c7f..7208cf6 100644 --- a/entry/src/main/ets/pages/ConversionPage.ets +++ b/entry/src/main/ets/pages/ConversionPage.ets @@ -39,7 +39,7 @@ struct ConversionPage { .height(Constants.FULL_PERCENT) } .titleMode(NavigationTitleMode.Mini) - .title(Constants.PIXEL_CONVERSION) + .title($r('app.string.pixel_conversion')) } .backgroundColor($r('app.color.page_background')) .width(Constants.FULL_PERCENT) diff --git a/entry/src/main/ets/pages/IntroductionPage.ets b/entry/src/main/ets/pages/IntroductionPage.ets index 2f99eca..8d0faf8 100644 --- a/entry/src/main/ets/pages/IntroductionPage.ets +++ b/entry/src/main/ets/pages/IntroductionPage.ets @@ -39,7 +39,7 @@ struct IntroductionPage { .height(Constants.FULL_PERCENT) } .titleMode(NavigationTitleMode.Mini) - .title(Constants.PIXEL_INTRODUCTION) + .title($r('app.string.pixel_introduce')) } .backgroundColor($r('app.color.page_background')) .width(Constants.FULL_PERCENT) -- Gitee