Localization plus minor fixes for ads feature
This commit is contained in:
parent
7b86f528b8
commit
53a1b96774
@ -11,6 +11,8 @@ class AdsController: FormViewController, MediaBrowserViewControllerDataSource {
|
|||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
self.title = NSLocalizedString("Ads", comment: "")
|
||||||
|
|
||||||
let formatter = DateFormatter()
|
let formatter = DateFormatter()
|
||||||
formatter.dateStyle = .long
|
formatter.dateStyle = .long
|
||||||
formatter.timeStyle = .none
|
formatter.timeStyle = .none
|
||||||
@ -49,7 +51,7 @@ class AdsController: FormViewController, MediaBrowserViewControllerDataSource {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let description = ad.adDescription {
|
if let description = ad.adDescription, !description.isEmpty {
|
||||||
section <<< MultilineLabelRow() { row in
|
section <<< MultilineLabelRow() { row in
|
||||||
row.title = NSLocalizedString("Description", comment: "")
|
row.title = NSLocalizedString("Description", comment: "")
|
||||||
row.value = description
|
row.value = description
|
||||||
|
|||||||
@ -25,7 +25,7 @@ final class ImageGridCell: Cell<[String]>, CellType {
|
|||||||
|
|
||||||
override func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
|
override func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority,
|
||||||
verticalFittingPriority: UILayoutPriority) -> CGSize {
|
verticalFittingPriority: UILayoutPriority) -> CGSize {
|
||||||
self.grid.preferredMaxLayoutWidth = self.bounds.size.width - self.contentView.layoutMargins.left - self.contentView.layoutMargins.right
|
self.grid.preferredMaxLayoutWidth = self.bounds.size.width - self.layoutMargins.left - self.layoutMargins.right
|
||||||
return super.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
|
return super.systemLayoutSizeFitting(targetSize, withHorizontalFittingPriority: horizontalFittingPriority, verticalFittingPriority: verticalFittingPriority)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Added by" = "Добавлено";
|
"Added by" = "Добавлено";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Ads" = "Объявления";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"All" = "Все";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Alternative order" = "Альтернативный порядок";
|
"Alternative order" = "Альтернативный порядок";
|
||||||
|
|
||||||
@ -67,6 +73,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Check parameters" = "Параметры проверки";
|
"Check parameters" = "Параметры проверки";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"City" = "Город";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Clear all filters" = "Очистить все фильтры";
|
"Clear all filters" = "Очистить все фильтры";
|
||||||
|
|
||||||
@ -91,6 +100,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Delete" = "Удалить";
|
"Delete" = "Удалить";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Description" = "Описание";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Done" = "Готово";
|
"Done" = "Готово";
|
||||||
|
|
||||||
@ -112,6 +124,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Events" = "События";
|
"Events" = "События";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Filter check history" = "Фильтр истории поиска";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"From" = "С";
|
"From" = "С";
|
||||||
|
|
||||||
@ -151,6 +166,9 @@
|
|||||||
/* Owner type */
|
/* Owner type */
|
||||||
"legal" = "Юр. лицо";
|
"legal" = "Юр. лицо";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Link" = "Ссылка";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Location" = "Координаты";
|
"Location" = "Координаты";
|
||||||
|
|
||||||
@ -163,6 +181,9 @@
|
|||||||
/* Added by */
|
/* Added by */
|
||||||
"Me" = "Мной";
|
"Me" = "Мной";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Mileage" = "Пробег";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Model" = "Модель";
|
"Model" = "Модель";
|
||||||
|
|
||||||
@ -193,6 +214,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"OSAGO contracts" = "Полисы ОСАГО";
|
"OSAGO contracts" = "Полисы ОСАГО";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Outdated" = "Неактуальные";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Owner" = "Владелец";
|
"Owner" = "Владелец";
|
||||||
|
|
||||||
@ -220,6 +244,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Power (kw)" = "Мощность (кВт)";
|
"Power (kw)" = "Мощность (кВт)";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Price" = "Цена";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Profile" = "Профиль";
|
"Profile" = "Профиль";
|
||||||
|
|
||||||
@ -235,6 +262,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Recording..." = "Запись...";
|
"Recording..." = "Запись...";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Region" = "Регион";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Regions" = "Регионы";
|
"Regions" = "Регионы";
|
||||||
|
|
||||||
@ -283,6 +313,9 @@
|
|||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Today" = "Сегодня";
|
"Today" = "Сегодня";
|
||||||
|
|
||||||
|
/* No comment provided by engineer. */
|
||||||
|
"Unrecognized" = "Нераспознанные";
|
||||||
|
|
||||||
/* No comment provided by engineer. */
|
/* No comment provided by engineer. */
|
||||||
"Update" = "Обновить";
|
"Update" = "Обновить";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user