mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 13:33:59 +00:00
Fixed german countdown ticker grammar
This commit is contained in:
1 parent
3e93e89b97
commit
fecff412d3
8 files changed
+197
-191
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ public interface TextMessages extends Messages {
|
||||
String sapSailing();
|
||||
String search();
|
||||
String startSimulator();
|
||||
|
||||
String countdownStartingInDays();
|
||||
String countdownDays();
|
||||
String countdownHours();
|
||||
String countdownMinutes();
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ overview=Overview
|
||||
sapSailing=SAP Sailing
|
||||
search=Search
|
||||
startSimulator=Start Simulator
|
||||
|
||||
countdownStartingInDays=Days
|
||||
countdownDays=Days
|
||||
countdownHours=Hrs
|
||||
countdownMinutes=Min
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ overview=Übersicht
|
||||
sapSailing=SAP Sailing
|
||||
search=Suche
|
||||
startSimulator=Simulator starten
|
||||
|
||||
countdownStartingInDays=Tagen
|
||||
countdownDays=Tage
|
||||
countdownHours=Std.
|
||||
countdownMinutes=Min.
|
||||
|
||||
+184
-183
@@ -1,183 +1,184 @@
|
||||
socialFooterShare=Share this on
|
||||
home=主页
|
||||
aboutUs=关于我们
|
||||
contact=联络
|
||||
sponsoring=赞助商
|
||||
solutions=解决方案
|
||||
events=比赛
|
||||
german=德语
|
||||
english=英语
|
||||
officalEventWebsite=官方活动网站
|
||||
leg=站
|
||||
races=赛事
|
||||
moreInfo=更多信息
|
||||
viewAnalysis=观看分析
|
||||
overallLeaderboard=总排行榜
|
||||
pleaseEnterASearchTerm=请输入搜索词
|
||||
pleaseTryAgain=请再试一次
|
||||
reloadPage=重新载入页面
|
||||
errorMessageLoadingData=加载该页的数据时出错
|
||||
errorMessageNoSuchLeaderboard=无法利用这词寻找排行榜
|
||||
raceNotScheduled=没有确认时间
|
||||
regattaDetails=帆船赛细节
|
||||
regatta=帆船赛
|
||||
competitorsAnalytics=队伍分析
|
||||
chooseChart=选择图标类型
|
||||
series=系列
|
||||
regattaLeaderboards=帆船赛排行榜
|
||||
features=功能
|
||||
releaseNotes=软件更新发布
|
||||
whatsNew=最新信息
|
||||
overview=概览
|
||||
sapSailing=SAP帆船
|
||||
search=搜索
|
||||
startSimulator=启动模拟器
|
||||
live=实时
|
||||
finished=结束
|
||||
watchNow=马上观看
|
||||
lastUpdate=最后更新
|
||||
leaderboard=排行榜
|
||||
eventHeaderMedia=媒体
|
||||
eventHeaderOverview=概览
|
||||
eventHeaderRaces=赛程
|
||||
eventHeaderRegattas=帆船赛
|
||||
seriesHeaderOverview=关于比赛系列
|
||||
seriesHeaderUpcoming=未来赛事
|
||||
seriesHeaderRecent=最近赛事
|
||||
seriesHeaderLeaderboard=排行榜
|
||||
eventsOverviewRecentEvents=赛事
|
||||
eventsOverviewRecentCountries=国家
|
||||
eventsOverviewRecentSailors=运动员
|
||||
eventsOverviewRecentTrackedRaces=赛事(含比赛分析)
|
||||
eventResultsHeadline=比赛结果
|
||||
eventResultsBoatClassesDropDown=所有帆船级别
|
||||
eventOverviewMoreEvents=更多赛事
|
||||
eventOverviewRecentEvents=最近赛事
|
||||
eventOverviewUpcomingDate=日期
|
||||
eventOverviewUpcomingEvent=赛事
|
||||
eventOverviewUpcomingLocation=地点
|
||||
eventOverviewUpcomingSchedule=未来赛程
|
||||
eventOverviewUpcomingSeries=系列
|
||||
eventOverviewUpcomingTeaser=更多赛事即将公布
|
||||
eventQuickfinderTitle=赛事快速查找
|
||||
eventRegattaHeaderLeaderboard=排行榜
|
||||
eventRegattaHeaderRaceRaces=赛事
|
||||
eventRegattaListAllBoatClasses=所有帆船级别
|
||||
eventRegattaLeaderboardCompetitor=比赛队伍
|
||||
eventRegattaLeaderboardExtendLeaderboard=详细排行榜
|
||||
eventRegattaLeaderboardFinishedMessage=没有更多比赛
|
||||
eventRegattaLeaderboardLastScoreUpdate=最后积分更新
|
||||
eventRegattaLeaderboardName=队伍名称
|
||||
eventRegattaLeaderboardRegattaRank=帆船赛排名
|
||||
eventRegattaLeaderboardTotalPoints=总积分
|
||||
eventRegattaRaceWatch=实时观看
|
||||
eventRegattaRaceAnalyse=赛事分析
|
||||
eventRegattaRaceNotTracked=不含比赛分析
|
||||
mainEventShowAll=显示所有赛事
|
||||
mainEventTitle=最新帆船赛事
|
||||
mainMediaSubtitle=
|
||||
mainMediaTitle=照片
|
||||
mainMediaVideosSubtitle=
|
||||
mainMediaVideosTitle=最新视频
|
||||
mainSponsorsReadMore=阅读更多
|
||||
mediaTeaserPhotosTitle=照片
|
||||
mediaTeaserVideosTitle=视频
|
||||
regattaCompetitors=比赛队伍\竞争对手
|
||||
regattaRaces=赛事
|
||||
regattaTracked=Tracked
|
||||
regattaRegattaStarts=帆船比赛即将开始
|
||||
regattaPts=积分
|
||||
regattaCourse=帆船赛程
|
||||
regattaArea=地点
|
||||
regattaFinishedAt=结束时间为
|
||||
regattaScheduledAt=开始时间为
|
||||
regattaStartedAt=开始时间为
|
||||
regattasResultsTitle=比赛结果
|
||||
searchResultHeaderButton=搜寻
|
||||
searchResultHeaderLabel=您的搜寻
|
||||
searchResultsFound=搜寻结果
|
||||
searchResultHeaderPlaceholder=输入您的搜寻关键词
|
||||
searchResultMore=更多
|
||||
searchResultSearch=搜寻
|
||||
searchResultSearchAgain=重新搜寻
|
||||
searchResultSortLabel=排序方式
|
||||
searchResultSortNewest=最近
|
||||
searchResultSortOldest=最旧
|
||||
searchResultSortRelevance=相关性
|
||||
solutionsSAPNav=SAP帆船比赛分析
|
||||
solutionsSAPHeadline=SAP帆船比赛分析
|
||||
countdownDays=Days
|
||||
countdownHours=Hrs
|
||||
countdownMinutes=Min
|
||||
countdownSeconds=Sec
|
||||
countdownDay=Day
|
||||
countdownHour=Hour
|
||||
countdownMinute=Min
|
||||
countdownSecond=Sec
|
||||
boxNewsUpdateMoreLink=Report news
|
||||
boxNewsUpdateTitle=News Update
|
||||
boxUpcomingRacesCountdownStarted1=Started
|
||||
boxUpcomingRacesCountdownStarted2=hrs and
|
||||
boxUpcomingRacesCountdownStarted3=minutes ago
|
||||
boxUpcomingRacesCountdownStarting1=Starting in
|
||||
boxUpcomingRacesCountdownStarting2=hrs and
|
||||
boxUpcomingRacesCountdownStarting3=minutes
|
||||
boxUpcomingRacesMoreLink=Event Schedule
|
||||
boxUpcomingRacesTitle=Upcoming Races Today
|
||||
boxWeather=Weather
|
||||
boxWeatherUnit=KTS
|
||||
defaultTitle=SAP帆船
|
||||
seriesOverviewHeaderRecent=Latest Series Events
|
||||
seriesOverviewReadMore=More
|
||||
eventRegattaRaceFinished=Finished at:
|
||||
eventRegattaRaceStarted=Started at:
|
||||
eventRegattaRaceScheduled=Scheduled for:
|
||||
eventRegattaRaceRace=Race
|
||||
eventRegattaRaceWind=Wind Strength:
|
||||
eventRegattaRaceWinner=Winner
|
||||
eventRegattaRaceLeader=Leader
|
||||
eventRegattaRacesLegendGps=Tracking
|
||||
eventRegattaRacesLegendWind=Wind Data
|
||||
eventRegattaRacesLegendVideo=Video
|
||||
eventRegattaRacesLegendAudio=Audio
|
||||
eventSponsorsTitle=Event Sponsorships
|
||||
footerJobs=Jobs
|
||||
footerCopyright=\u00A9 2015 SAP帆船
|
||||
footerLanguage=SAP Sailing offered in
|
||||
footerLegal=Legal Disclosure
|
||||
footerPrivacy=Privacy
|
||||
footerFeedback=Feedback
|
||||
headerEvents=比赛
|
||||
headerHome=主页
|
||||
headerLogo=SAP帆船
|
||||
headerSearch=搜索
|
||||
headerSearchPlaceholder=搜索
|
||||
headerSolutions=Solutions
|
||||
headerSponsoring=Sponsoring
|
||||
latestRaceResultsHeadline=Latest Official Race Results
|
||||
latestRaceResultsIsNew=New
|
||||
latestRaceResultsIsUpdated=Updated
|
||||
latestRaceResultsRaceCountLabel=Result after
|
||||
latestRaceResultsRaceCountUnit=races
|
||||
latestRaceResultsRefresh=refresh
|
||||
leaderboardQuickAccessLabel=Leaderboard Quick Access
|
||||
searchResultCount=About 2,450 results where found for 'Schnitzel'
|
||||
sharingEmail=Send an email
|
||||
sharingFacebook=Share on Facebook
|
||||
sharingTwitter=Tweet about it
|
||||
socialFooterTitle=Recommend SAP Sailing Analytics
|
||||
solutionsSAPText1=By delivering real time analytics around race rankings, speeds, maneuvers, bearings etc., SAP is helping to simplify and demystify the complex sport of sailing.
|
||||
solutionsSAPText2=SAP Sailing Analytics provide insights and transparency to the world of sailing by utilizing Cloud and In-Memory Technology, processing GPS and wind measurement data in real time and visualizing contents in various frontends accessible from anywhere.
|
||||
solutionsRaceNav=Race Committee App
|
||||
solutionsRaceHeadline=Race Committee App
|
||||
solutionsRaceText=The SAP Race Committee App delivers greater efficiency and control to race organizers by automating and simplifying their manual tasks and communication during running sailing regattas. The Race Committee App helps simplify the operation of running and managing race events to help race committees operate smarter.
|
||||
solutionsPostNav=Post-Race Analytics
|
||||
solutionsPostHeadline=Post-Race Analytics
|
||||
solutionsPostText=Access to data collected at sailing events gives sailors the opportunity to assess and analyse their performances to help develop strategies and sail better.<br> SAP Business Analytics solutions provide sailors, coaches, fans and media with tools to browse and analyse historical data across many regattas and races. SAP HANA allows them to learn about performance patterns, tendencies and sailor profiles in a simple, fast and efficient way in order to optimize their own performance and develop successful strategies for future regattas.
|
||||
solutionsTrainingNav=Training Diary
|
||||
solutionsTrainingHeadline=SAP Sail Better \u2013 STG Training Diary
|
||||
solutionsTrainingText=The STG Training Diary supports the daily documentation and analysis of an athlete\u2019s physical condition and training efforts in the areas of water training, physical training, boat work, mental, theory as well as other activities like education or travel.
|
||||
solutionsSimulatorNav=Strategy Simulator
|
||||
solutionsSimulatorHeadline=Strategy Simulator
|
||||
solutionsSimulatorText=Choosing the right strategy can provide great competitive advantage during a race. The Strategy Simulator simplifies determining the best sailing strategy for various wind conditions and water currents. Since wind and current can be changed in the simulation right away, the robustness of a strategy can be easily evaluated even for uncertain weather conditions.
|
||||
|
||||
socialFooterShare=Share this on
|
||||
home=主页
|
||||
aboutUs=关于我们
|
||||
contact=联络
|
||||
sponsoring=赞助商
|
||||
solutions=解决方案
|
||||
events=比赛
|
||||
german=德语
|
||||
english=英语
|
||||
officalEventWebsite=官方活动网站
|
||||
leg=站
|
||||
races=赛事
|
||||
moreInfo=更多信息
|
||||
viewAnalysis=观看分析
|
||||
overallLeaderboard=总排行榜
|
||||
pleaseEnterASearchTerm=请输入搜索词
|
||||
pleaseTryAgain=请再试一次
|
||||
reloadPage=重新载入页面
|
||||
errorMessageLoadingData=加载该页的数据时出错
|
||||
errorMessageNoSuchLeaderboard=无法利用这词寻找排行榜
|
||||
raceNotScheduled=没有确认时间
|
||||
regattaDetails=帆船赛细节
|
||||
regatta=帆船赛
|
||||
competitorsAnalytics=队伍分析
|
||||
chooseChart=选择图标类型
|
||||
series=系列
|
||||
regattaLeaderboards=帆船赛排行榜
|
||||
features=功能
|
||||
releaseNotes=软件更新发布
|
||||
whatsNew=最新信息
|
||||
overview=概览
|
||||
sapSailing=SAP帆船
|
||||
search=搜索
|
||||
startSimulator=启动模拟器
|
||||
live=实时
|
||||
finished=结束
|
||||
watchNow=马上观看
|
||||
lastUpdate=最后更新
|
||||
leaderboard=排行榜
|
||||
eventHeaderMedia=媒体
|
||||
eventHeaderOverview=概览
|
||||
eventHeaderRaces=赛程
|
||||
eventHeaderRegattas=帆船赛
|
||||
seriesHeaderOverview=关于比赛系列
|
||||
seriesHeaderUpcoming=未来赛事
|
||||
seriesHeaderRecent=最近赛事
|
||||
seriesHeaderLeaderboard=排行榜
|
||||
eventsOverviewRecentEvents=赛事
|
||||
eventsOverviewRecentCountries=国家
|
||||
eventsOverviewRecentSailors=运动员
|
||||
eventsOverviewRecentTrackedRaces=赛事(含比赛分析)
|
||||
eventResultsHeadline=比赛结果
|
||||
eventResultsBoatClassesDropDown=所有帆船级别
|
||||
eventOverviewMoreEvents=更多赛事
|
||||
eventOverviewRecentEvents=最近赛事
|
||||
eventOverviewUpcomingDate=日期
|
||||
eventOverviewUpcomingEvent=赛事
|
||||
eventOverviewUpcomingLocation=地点
|
||||
eventOverviewUpcomingSchedule=未来赛程
|
||||
eventOverviewUpcomingSeries=系列
|
||||
eventOverviewUpcomingTeaser=更多赛事即将公布
|
||||
eventQuickfinderTitle=赛事快速查找
|
||||
eventRegattaHeaderLeaderboard=排行榜
|
||||
eventRegattaHeaderRaceRaces=赛事
|
||||
eventRegattaListAllBoatClasses=所有帆船级别
|
||||
eventRegattaLeaderboardCompetitor=比赛队伍
|
||||
eventRegattaLeaderboardExtendLeaderboard=详细排行榜
|
||||
eventRegattaLeaderboardFinishedMessage=没有更多比赛
|
||||
eventRegattaLeaderboardLastScoreUpdate=最后积分更新
|
||||
eventRegattaLeaderboardName=队伍名称
|
||||
eventRegattaLeaderboardRegattaRank=帆船赛排名
|
||||
eventRegattaLeaderboardTotalPoints=总积分
|
||||
eventRegattaRaceWatch=实时观看
|
||||
eventRegattaRaceAnalyse=赛事分析
|
||||
eventRegattaRaceNotTracked=不含比赛分析
|
||||
mainEventShowAll=显示所有赛事
|
||||
mainEventTitle=最新帆船赛事
|
||||
mainMediaSubtitle=
|
||||
mainMediaTitle=照片
|
||||
mainMediaVideosSubtitle=
|
||||
mainMediaVideosTitle=最新视频
|
||||
mainSponsorsReadMore=阅读更多
|
||||
mediaTeaserPhotosTitle=照片
|
||||
mediaTeaserVideosTitle=视频
|
||||
regattaCompetitors=比赛队伍\竞争对手
|
||||
regattaRaces=赛事
|
||||
regattaTracked=Tracked
|
||||
regattaRegattaStarts=帆船比赛即将开始
|
||||
regattaPts=积分
|
||||
regattaCourse=帆船赛程
|
||||
regattaArea=地点
|
||||
regattaFinishedAt=结束时间为
|
||||
regattaScheduledAt=开始时间为
|
||||
regattaStartedAt=开始时间为
|
||||
regattasResultsTitle=比赛结果
|
||||
searchResultHeaderButton=搜寻
|
||||
searchResultHeaderLabel=您的搜寻
|
||||
searchResultsFound=搜寻结果
|
||||
searchResultHeaderPlaceholder=输入您的搜寻关键词
|
||||
searchResultMore=更多
|
||||
searchResultSearch=搜寻
|
||||
searchResultSearchAgain=重新搜寻
|
||||
searchResultSortLabel=排序方式
|
||||
searchResultSortNewest=最近
|
||||
searchResultSortOldest=最旧
|
||||
searchResultSortRelevance=相关性
|
||||
solutionsSAPNav=SAP帆船比赛分析
|
||||
solutionsSAPHeadline=SAP帆船比赛分析
|
||||
countdownStartingInDays=Days
|
||||
countdownDays=Days
|
||||
countdownHours=Hrs
|
||||
countdownMinutes=Min
|
||||
countdownSeconds=Sec
|
||||
countdownDay=Day
|
||||
countdownHour=Hour
|
||||
countdownMinute=Min
|
||||
countdownSecond=Sec
|
||||
boxNewsUpdateMoreLink=Report news
|
||||
boxNewsUpdateTitle=News Update
|
||||
boxUpcomingRacesCountdownStarted1=Started
|
||||
boxUpcomingRacesCountdownStarted2=hrs and
|
||||
boxUpcomingRacesCountdownStarted3=minutes ago
|
||||
boxUpcomingRacesCountdownStarting1=Starting in
|
||||
boxUpcomingRacesCountdownStarting2=hrs and
|
||||
boxUpcomingRacesCountdownStarting3=minutes
|
||||
boxUpcomingRacesMoreLink=Event Schedule
|
||||
boxUpcomingRacesTitle=Upcoming Races Today
|
||||
boxWeather=Weather
|
||||
boxWeatherUnit=KTS
|
||||
defaultTitle=SAP帆船
|
||||
seriesOverviewHeaderRecent=Latest Series Events
|
||||
seriesOverviewReadMore=More
|
||||
eventRegattaRaceFinished=Finished at:
|
||||
eventRegattaRaceStarted=Started at:
|
||||
eventRegattaRaceScheduled=Scheduled for:
|
||||
eventRegattaRaceRace=Race
|
||||
eventRegattaRaceWind=Wind Strength:
|
||||
eventRegattaRaceWinner=Winner
|
||||
eventRegattaRaceLeader=Leader
|
||||
eventRegattaRacesLegendGps=Tracking
|
||||
eventRegattaRacesLegendWind=Wind Data
|
||||
eventRegattaRacesLegendVideo=Video
|
||||
eventRegattaRacesLegendAudio=Audio
|
||||
eventSponsorsTitle=Event Sponsorships
|
||||
footerJobs=Jobs
|
||||
footerCopyright=\u00A9 2015 SAP帆船
|
||||
footerLanguage=SAP Sailing offered in
|
||||
footerLegal=Legal Disclosure
|
||||
footerPrivacy=Privacy
|
||||
footerFeedback=Feedback
|
||||
headerEvents=比赛
|
||||
headerHome=主页
|
||||
headerLogo=SAP帆船
|
||||
headerSearch=搜索
|
||||
headerSearchPlaceholder=搜索
|
||||
headerSolutions=Solutions
|
||||
headerSponsoring=Sponsoring
|
||||
latestRaceResultsHeadline=Latest Official Race Results
|
||||
latestRaceResultsIsNew=New
|
||||
latestRaceResultsIsUpdated=Updated
|
||||
latestRaceResultsRaceCountLabel=Result after
|
||||
latestRaceResultsRaceCountUnit=races
|
||||
latestRaceResultsRefresh=refresh
|
||||
leaderboardQuickAccessLabel=Leaderboard Quick Access
|
||||
searchResultCount=About 2,450 results where found for 'Schnitzel'
|
||||
sharingEmail=Send an email
|
||||
sharingFacebook=Share on Facebook
|
||||
sharingTwitter=Tweet about it
|
||||
socialFooterTitle=Recommend SAP Sailing Analytics
|
||||
solutionsSAPText1=By delivering real time analytics around race rankings, speeds, maneuvers, bearings etc., SAP is helping to simplify and demystify the complex sport of sailing.
|
||||
solutionsSAPText2=SAP Sailing Analytics provide insights and transparency to the world of sailing by utilizing Cloud and In-Memory Technology, processing GPS and wind measurement data in real time and visualizing contents in various frontends accessible from anywhere.
|
||||
solutionsRaceNav=Race Committee App
|
||||
solutionsRaceHeadline=Race Committee App
|
||||
solutionsRaceText=The SAP Race Committee App delivers greater efficiency and control to race organizers by automating and simplifying their manual tasks and communication during running sailing regattas. The Race Committee App helps simplify the operation of running and managing race events to help race committees operate smarter.
|
||||
solutionsPostNav=Post-Race Analytics
|
||||
solutionsPostHeadline=Post-Race Analytics
|
||||
solutionsPostText=Access to data collected at sailing events gives sailors the opportunity to assess and analyse their performances to help develop strategies and sail better.<br> SAP Business Analytics solutions provide sailors, coaches, fans and media with tools to browse and analyse historical data across many regattas and races. SAP HANA allows them to learn about performance patterns, tendencies and sailor profiles in a simple, fast and efficient way in order to optimize their own performance and develop successful strategies for future regattas.
|
||||
solutionsTrainingNav=Training Diary
|
||||
solutionsTrainingHeadline=SAP Sail Better \u2013 STG Training Diary
|
||||
solutionsTrainingText=The STG Training Diary supports the daily documentation and analysis of an athlete\u2019s physical condition and training efforts in the areas of water training, physical training, boat work, mental, theory as well as other activities like education or travel.
|
||||
solutionsSimulatorNav=Strategy Simulator
|
||||
solutionsSimulatorHeadline=Strategy Simulator
|
||||
solutionsSimulatorText=Choosing the right strategy can provide great competitive advantage during a race. The Strategy Simulator simplifies determining the best sailing strategy for various wind conditions and water currents. Since wind and current can be changed in the simulation right away, the robustness of a strategy can be easily evaluated even for uncertain weather conditions.
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public abstract class StageTeaser extends Composite implements LazyLoadable {
|
||||
StageResources.INSTANCE.css().ensureInjected();
|
||||
|
||||
TimePoint eventStart = new MillisecondsTimePoint(event.getStartDate());
|
||||
countdownTimerUi = new CountdownTimer(eventStart.asDate());
|
||||
countdownTimerUi = new CountdownTimer(eventStart.asDate(), false);
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
|
||||
if(MillisecondsTimePoint.now().after(eventStart)) {
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public abstract class StageTeaser extends Composite implements LazyLoadable {
|
||||
StageResources.INSTANCE.css().ensureInjected();
|
||||
|
||||
TimePoint eventStart = new MillisecondsTimePoint(event.getStartDate());
|
||||
countdownTimerUi = new CountdownTimer(eventStart.asDate());
|
||||
countdownTimerUi = new CountdownTimer(eventStart.asDate(), false);
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
|
||||
if(MillisecondsTimePoint.now().after(eventStart)) {
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ public class Countdown extends Composite {
|
||||
}
|
||||
|
||||
if(data.getStartTime() != null) {
|
||||
this.tickerContainer.setWidget(new CountdownTimer(data.getStartTime()));
|
||||
this.tickerContainer.setWidget(new CountdownTimer(data.getStartTime(), true));
|
||||
} else {
|
||||
this.tickerContainer.setWidget(null);
|
||||
}
|
||||
|
||||
+7
-2
@@ -9,9 +9,11 @@ import com.google.gwt.dom.client.Style.Display;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.sap.sailing.gwt.common.client.i18n.TextMessages;
|
||||
import com.sap.sailing.gwt.home.shared.utils.Countdown;
|
||||
import com.sap.sailing.gwt.home.shared.utils.Countdown.CountdownListener;
|
||||
import com.sap.sailing.gwt.home.shared.utils.Countdown.RemainingTime;
|
||||
import com.sap.sailing.gwt.home.shared.utils.Countdown.Unit;
|
||||
import com.sap.sse.common.impl.MillisecondsTimePoint;
|
||||
|
||||
public class CountdownTimer extends Widget {
|
||||
@@ -25,8 +27,10 @@ public class CountdownTimer extends Widget {
|
||||
@UiField DivElement minorContainer, minorValue, minorUnit;
|
||||
|
||||
private final Countdown countdown;
|
||||
private boolean hasStartingInHeader;
|
||||
|
||||
public CountdownTimer(Date startTime) {
|
||||
public CountdownTimer(Date startTime, boolean hasStartingInHeader) {
|
||||
this.hasStartingInHeader = hasStartingInHeader;
|
||||
CountdownTimerResources.INSTANCE.css().ensureInjected();
|
||||
setElement(uiBinder.createAndBindUi(this));
|
||||
this.countdown = new Countdown(new MillisecondsTimePoint(startTime), new CountdownTickerListener());
|
||||
@@ -47,7 +51,8 @@ public class CountdownTimer extends Widget {
|
||||
} else {
|
||||
container.getStyle().clearDisplay();
|
||||
value.setInnerText(String.valueOf(time.value));
|
||||
unit.setInnerText(time.unitI18n());
|
||||
unit.setInnerText(time.unit == Unit.DAYS && hasStartingInHeader ?
|
||||
TextMessages.INSTANCE.countdownStartingInDays() : time.unitI18n());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user