Skip to content

Commit

Permalink
Bugfix/issue 2580 (#2584)
Browse files Browse the repository at this point in the history
* Corrected string placedholders in certain string files

* Corrected string placedholders in certain string files[Bug fix #2580]
  • Loading branch information
ashishkumar468 authored and maskaravivek committed Mar 15, 2019
1 parent cf1faf4 commit 27683a7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -100,7 +101,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
* @param author
*/
private void setAuthorView(Media item, TextView author) {
if (item.getCreator() != null && !item.getCreator().equals("")) {
if (!TextUtils.isEmpty(item.getCreator())) {
String uploadedByTemplate = context.getString(R.string.image_uploaded_by);

String uploadedBy = String.format(Locale.getDefault(), uploadedByTemplate, item.getCreator());
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
<string name="showcase_view_plus_fab">يمكنك رفع صورة لأي مكان من معرضك أو كاميرتك</string>
<string name="no_images_found">لم يتم العثور على صور!</string>
<string name="error_loading_images">حدث خطأ أثناء تحميل الصور.</string>
<string name="image_uploaded_by">تم الرفع بواسطة: %1$s</string>
<string name="image_uploaded_by">%1$s :تم الرفع بواسطة</string>
<string name="block_notification">أنت ممنوع من تحرير كومنز</string>
<string name="appwidget_img">صورة اليوم</string>
<string name="app_widget_heading">صورة اليوم</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
<string name="showcase_view_plus_fab">場所の写真をアップロードするには、ギャラリーから選ぶことも撮影することもできます</string>
<string name="no_images_found">画像がありません</string>
<string name="error_loading_images">画像の読み込み中にエラーが発生しました</string>
<string name="image_uploaded_by">アップロードした人: %1$</string>
<string name="image_uploaded_by">アップロードした人: %1$s</string>
<string name="appwidget_img">今日の一枚</string>
<string name="app_widget_heading">今日の一枚</string>
<string name="menu_search_button">検索</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
<string name="showcase_view_got_it_button">Wszystko jasne!</string>
<string name="no_images_found">Nie znaleziono grafik!</string>
<string name="error_loading_images">Wystąpił błąd podczas ładowania grafik.</string>
<string name="image_uploaded_by">Przesłano przez $1</string>
<string name="image_uploaded_by">Przesłano przez %1$s</string>
<string name="menu_search_button">Szukaj</string>
<string name="search_recent_header">Ostatnie wyszukiwania:</string>
<string name="provider_searches">Ostatnio wyszukiwane zapytania</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
<string name="showcase_view_plus_fab">您可以从您的图库或照相机中上传任意地点的图片</string>
<string name="no_images_found">找不到图片!</string>
<string name="error_loading_images">加载图片时出错。</string>
<string name="image_uploaded_by">由%1$s上传</string>
<string name="image_uploaded_by">由%1$s上传: %1$s</string>
<string name="block_notification">你被禁止编辑共享资源</string>
<string name="appwidget_img">每日图片</string>
<string name="app_widget_heading">每日图片</string>
Expand Down

0 comments on commit 27683a7

Please sign in to comment.