[ios] Use correct localized keys

This commit is contained in:
VladiMihaylenko 2017-10-18 16:15:08 +03:00 committed by r.kuznetsov
parent 6d900aa9da
commit cdd066d406
4 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ final class UGCAddReviewRatingCell: MWMTableViewCell {
var model: UGCRatingStars! {
didSet {
titleLabel.text = model.title
titleLabel.text = L(model.title)
ratingView.value = model.value
ratingView.starsCount = 5
}

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@ -19,7 +19,7 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZYO-sw-mr0">
<rect key="frame" x="8" y="14" width="42" height="15.5"/>
<rect key="frame" x="16" y="14" width="42" height="15.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
@ -41,7 +41,7 @@
<constraints>
<constraint firstAttribute="bottom" secondItem="ZYO-sw-mr0" secondAttribute="bottom" constant="14" id="JGH-iW-T5A"/>
<constraint firstAttribute="trailing" secondItem="FRG-q1-pKr" secondAttribute="trailing" constant="16" id="RsB-As-Tpo"/>
<constraint firstItem="ZYO-sw-mr0" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="8" id="UzX-2P-uVU"/>
<constraint firstItem="ZYO-sw-mr0" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="UzX-2P-uVU"/>
<constraint firstItem="FRG-q1-pKr" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Yo0-tP-fqk"/>
<constraint firstItem="ZYO-sw-mr0" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="14" id="mps-PB-xMQ"/>
</constraints>

View file

@ -1,7 +1,7 @@
final class UGCAddReviewTextCell: MWMTableViewCell {
@IBOutlet private weak var textView: MWMTextView! {
didSet {
textView.placeholder = L("review_placeholder")
textView.placeholder = L("placepage_reviews_hint")
textView.font = UIFont.regular16()
textView.textColor = UIColor.blackPrimaryText()
textView.placeholderView.textColor = UIColor.blackSecondaryText()

View file

@ -12,7 +12,7 @@ final class UGCSummaryRatingStarsCell: UICollectionViewCell {
}
func config(rating: UGCRatingStars) {
ratingView.topText = rating.title
ratingView.topText = L(rating.title)
ratingView.value = rating.value
ratingView.starsCount = Int(rating.maxValue)
}