From d2f494d5c2217c5197dc94847acc7d24f7b1664a Mon Sep 17 00:00:00 2001 From: andreievg Date: Mon, 21 Aug 2017 23:23:37 +0900 Subject: [PATCH 1/4] Localise done in text editor widget --- src/localization/buttonStrings.js | 6 ++++-- src/widgets/TextEditor.js | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/localization/buttonStrings.js b/src/localization/buttonStrings.js index 4ed8f16ac..aca2028b4 100644 --- a/src/localization/buttonStrings.js +++ b/src/localization/buttonStrings.js @@ -12,6 +12,7 @@ export const buttonStrings = new LocalizedStrings({ all_items_selected: 'All Items Selected', create_automatic_order: 'Create Automatic Order', current: 'Current', + done: 'Done', hide_stockouts: 'Hide Stockouts', manage_stocktake: 'Manage Stocktake', new_invoice: 'New Invoice', @@ -23,7 +24,7 @@ export const buttonStrings = new LocalizedStrings({ use_suggested_quantities: 'Use Suggested Quantities', use_requested_quantities: 'Use Requested Quantities', }, - gil: { // TODO: use_requested_quantities, new_supplier_invoice, add_batch + gil: { // TODO: use_requested_quantities, new_supplier_invoice, add_batch, done add_master_list_items: 'Rinea am list', all_items_selected: 'Aikai nikabane', create_automatic_order: 'Create Automatic Order', @@ -37,12 +38,13 @@ export const buttonStrings = new LocalizedStrings({ past: 'Are I mwaina', use_suggested_quantities: 'Kabongana te\nmwaiti are e katauaki', }, - tl: { // TODO: use_requested_quantities + tl: { add_batch: 'Linha Foun', add_master_list_items: 'Utiliza Lista Master', all_items_selected: 'Hili Item Hotu', create_automatic_order: 'Kria Orden Automátiku', current: 'Atuál', + done: 'Hotu', hide_stockouts: 'Hili item ho Qtd ejiste', manage_stocktake: 'Maneja Ajustamentu', new_invoice: 'Invoice Foun', diff --git a/src/widgets/TextEditor.js b/src/widgets/TextEditor.js index 3bc2843d7..e11669daf 100644 --- a/src/widgets/TextEditor.js +++ b/src/widgets/TextEditor.js @@ -12,8 +12,10 @@ import { import { Button } from 'react-native-ui-components'; import { TextInput } from './index'; +import { buttonStrings } from '../localization'; import globalStyles from '../globalStyles'; + /** * Renders a View containing a TextInput and confirm Button, to allow editing * of the text passed in as a prop. @@ -43,7 +45,7 @@ export class TextEditor extends React.Component {