Merge lp:~penk/ubuntu-clock-app/use_replace_to_trim_am_pm_text into lp:ubuntu-clock-app
Proposed by
Penk Chen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Nekhelesh Ramananthan | ||||
Approved revision: | 267 | ||||
Merged at revision: | 267 | ||||
Proposed branch: | lp:~penk/ubuntu-clock-app/use_replace_to_trim_am_pm_text | ||||
Merge into: | lp:ubuntu-clock-app | ||||
Diff against target: |
17 lines (+2/-2) 1 file modified
app/components/DigitalMode.qml (+2/-2) |
||||
To merge this branch: | bzr merge lp:~penk/ubuntu-clock-app/use_replace_to_trim_am_pm_text | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Nekhelesh Ramananthan | Approve | ||
Review via email: mp+260121@code.launchpad.net |
Commit message
Use replace() to trim amText/pmText in DigitalMode
Description of the change
Using replace() instead of split() to trim amText/pmText, this prevents time string being cut empty in some locale (e.g. in Chinese).
English locale:
10:01 AM // time
10:01 // time.split(
10:01 // time.replace(
Chinese locale:
上午 10:01 // time
// time.split(
10:01 // time.replace(
To post a comment you must log in.
FAILED: Continuous integration, rev:267 /code.launchpad .net/~penk/ ubuntu- clock-app/ use_replace_ to_trim_ am_pm_text/ +merge/ 260121/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// 91.189. 93.70:8080/ job/ubuntu- clock-app- ci/648/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 2813 91.189. 93.70:8080/ job/generic- mediumtests- utopic/ 2813/artifact/ work/output/ *zip*/output. zip
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- clock-app- ci/648/ rebuild
http://