Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZH translation #695

Merged
merged 7 commits into from
Jun 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Decred Wallet/Features/Security/Security.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ Unlock the wallet to resume the process.</string>
</constraints>
<fontDescription key="fontDescription" name="SourceSansPro-SemiBold" family="Source Sans Pro" pointSize="16"/>
<state key="normal" title="Cancel"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="xibLocalizedStringKey" value="cancel"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="cancelTapped:" destination="2lq-jW-9IA" eventType="touchUpInside" id="Vej-tw-TUU"/>
</connections>
Expand Down Expand Up @@ -603,6 +606,9 @@ Unlock the wallet to resume the process.</string>
</constraints>
<fontDescription key="fontDescription" name="SourceSansPro-SemiBold" family="Source Sans Pro" pointSize="16"/>
<state key="normal" title="Cancel"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="xibLocalizedStringKey" value="cancel"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onCancelButtonTapped:" destination="SKa-iY-3vv" eventType="touchUpInside" id="Uoo-pY-Xi8"/>
</connections>
Expand Down
2 changes: 2 additions & 0 deletions Decred Wallet/Features/Send/SendViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class SendViewController: UIViewController {
}
}

self.destinationAddressTextField.placeholder = LocalizedStrings.destinationAddress

self.destinationAddressTextField.add(button: self.scanQRCodeForAddressButton)
self.destinationAddressTextField.add(button: self.pasteAddressFromClipboardButton)
self.destinationAddressTextField.textViewDelegate = self
Expand Down
15 changes: 9 additions & 6 deletions Decred Wallet/Features/Wallets/WalletAccountTableViewCell.xib
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<customFonts key="customFonts">
Expand All @@ -30,14 +30,14 @@
<color key="textColor" red="0.035294117649999998" green="0.078431372550000003" blue="0.25098039220000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="7.51464806 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="umF-wo-77k">
<rect key="frame" x="264" y="13" width="134" height="25.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="0.00 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="umF-wo-77k">
<rect key="frame" x="324" y="13" width="74" height="25.5"/>
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="20"/>
<color key="textColor" red="0.035294117649999998" green="0.078431372550000003" blue="0.25098039220000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="7.51464806 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cU2-tf-Rgi">
<rect key="frame" x="304.5" y="40.5" width="93.5" height="18"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="0.00 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cU2-tf-Rgi">
<rect key="frame" x="346" y="40.5" width="52" height="18"/>
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="14"/>
<color key="textColor" red="0.34901960780000002" green="0.42745098040000001" blue="0.50588235290000005" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
Expand All @@ -54,6 +54,9 @@
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="14"/>
<color key="textColor" red="0.34901960784313724" green="0.42745098039215684" blue="0.50588235294117645" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="xibLocalizedStringKey" value="spendable"/>
</userDefinedRuntimeAttributes>
</label>
</subviews>
<constraints>
Expand Down
2 changes: 1 addition & 1 deletion Decred Wallet/Features/Wallets/WalletInfoTableViewCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</label>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="7.51464806 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tdl-Ng-y9r">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="0.00 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tdl-Ng-y9r">
<rect key="frame" x="173" y="16" width="193" height="38.5"/>
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
<color key="textColor" red="0.34901960784313724" green="0.42745098039215684" blue="0.50588235294117645" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class WalletSettingsViewController: UIViewController {
}

func showRemoveWalletWarning(callback: @escaping (Bool) -> Void) {
let message = self.wallet.isWatchingOnlyWallet() ? LocalizedStrings.removeWalletWarning : LocalizedStrings.removeWatchWalletPrompt
let message = self.wallet.isWatchingOnlyWallet() ? LocalizedStrings.removeWatchWalletPrompt : LocalizedStrings.removeWalletWarning
SimpleOkCancelDialog.show(sender: self,
title: LocalizedStrings.removeWalletFromDevice,
message: message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<color key="textColor" red="0.035294117649999998" green="0.078431372550000003" blue="0.25098039220000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="7.51464806 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9Xm-3f-sHC">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="0.00 DCR" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9Xm-3f-sHC">
<rect key="frame" x="153.5" y="0.0" width="153.5" height="20.5"/>
<fontDescription key="fontDescription" name="SourceSansPro-Regular" family="Source Sans Pro" pointSize="16"/>
<color key="textColor" red="0.34901960784313724" green="0.42745098039215684" blue="0.50588235294117645" alpha="1" colorSpace="calibratedRGB"/>
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/Utils/LocalizedStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ struct LocalizedStrings {
static let sendWarning = NSLocalizedString("sendWarning", comment: "")
static let sendingAccount = NSLocalizedString("sendingAccount", comment: "")
static let toDestinationAddress = NSLocalizedString("toDestinationAddress", comment: "")
static let destinationAddress = NSLocalizedString("destinationAddress", comment: "")
static let toSelf = NSLocalizedString("toSelf", comment: "")
static let transactionSent = NSLocalizedString("transactionSent", comment: "")

Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Sending Account";
"toSelf" = "To self";
"toDestinationAddress" = "To destination address";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Sending Account";
"toSelf" = "To self";
"toDestinationAddress" = "To destination address";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/pl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Konto wysyłające";
"toSelf" = "Do siebie";
"toDestinationAddress" = "Na adres docelowy";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Sending Account";
"toSelf" = "To self";
"toDestinationAddress" = "To destination address";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/ru-RU.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Sending Account";
"toSelf" = "To self";
"toDestinationAddress" = "To destination address";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
1 change: 1 addition & 0 deletions Decred Wallet/vi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"sendingAccount" = "Sending Account";
"toSelf" = "To self";
"toDestinationAddress" = "To destination address";
"destinationAddress" = "Destination Address";
"transactionSent" = "Transaction sent";

/* Recieve */
Expand Down
Loading