Skip to content

Commit

Permalink
Merge pull request #4129 from designet-inc-oss/traslate_placeholder_ja
Browse files Browse the repository at this point in the history
Added Japanese translation of placeholders.
  • Loading branch information
connortechnology committed Sep 9, 2024
2 parents fe18e01 + 19882b0 commit 1153df7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions web/lang/ja_jp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,13 @@
'Zoom' => 'ズーム',
'Zoom IN' => 'ズームイン',
'Zoom OUT' => 'ズームアウト',
'text or regular expression' => '文字列または正規表現を入力',
'leave blank for auto' => '空白の場合は自動採番',
'Python strftime format. %f for hundredths, %N for Monitor Name, %Q for show text.' => 'Pythonのstrftimeフォーマット。fは100分の1、%Nはモニター名、%Qはテキスト表示',
'Camera IP Address' => 'カメラのIPアドレス',
'Camera Username' => 'カメラのユーザ名',
'Camera Password' => 'カメラのパスワード',
'Enter new name for layout if desired' => 'レイアウト名を入力',
);

// Complex replacements with formatting and/or placements, must be passed through sprintf
Expand Down
4 changes: 2 additions & 2 deletions web/skins/classic/views/_monitor_filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function buildMonitorsFilters() {

$html .= '<span class="term MonitorNameFilter"><label>'.translate('Name').'</label>';
$html .= '<span class="term-value-wrapper">';
$html .= '<input type="text" name="MonitorName" value="'.(isset($_SESSION['MonitorName'])?validHtmlStr($_SESSION['MonitorName']):'').'" placeholder="text or regular expression"/></span>';
$html .= '<input type="text" name="MonitorName" value="'.(isset($_SESSION['MonitorName'])?validHtmlStr($_SESSION['MonitorName']):'').'" placeholder="'.translate('text or regular expression').'"/></span>';
$html .= '</span>'.PHP_EOL;

$html .= addFilterSelect('Capturing', array('None'=>translate('None'), 'Always'=>translate('Always'), 'OnDemand'=>translate('On Demand')));
Expand Down Expand Up @@ -180,7 +180,7 @@ function buildMonitorsFilters() {

$html .= '<span class="term SourceFilter"><label>'.translate('Source').'</label>';
$html .= '<span class="term-value-wrapper">';
$html .= '<input type="text" name="Source" value="'.(isset($_SESSION['Source'])?validHtmlStr($_SESSION['Source']):'').'" placeholder="text or regular expression"/>';
$html .= '<input type="text" name="Source" value="'.(isset($_SESSION['Source'])?validHtmlStr($_SESSION['Source']):'').'" placeholder="'.translate('text or regular expression').'"/>';
$html .= '</span>';
$html .= '</span>';

Expand Down
6 changes: 3 additions & 3 deletions web/skins/classic/views/add_monitors.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
#'multiple'=>'multiple',
'class'=>'chosen']);
?>
<input type="text" id="ip" name="ip" placeholder="Camera IP Address"/>
<input type="text" id="probe_username" name="probe_username" placeholder="Camera Username"
<input type="text" id="ip" name="ip" placeholder="<?php echo translate('Camera IP Address') ?>"/>
<input type="text" id="probe_username" name="probe_username" placeholder="<?php echo translate('Camera Username') ?>"
value="<?php echo isset($_COOKIE['addMonitorsprobe_username']) ? validHtmlStr($_COOKIE['addMonitorsprobe_username']) : '' ?>"/>
<input type="text" id="probe_password" name="probe_password" placeholder="Camera Password"
<input type="text" id="probe_password" name="probe_password" placeholder="<?php echo translate('Camera Password') ?>"
value="<?php echo isset($_COOKIE['addMonitorsprobe_password']) ? validHtmlStr($_COOKIE['addMonitorsprobe_password']) : '' ?>"/>
</div>
<div id="contentButtons">
Expand Down
4 changes: 2 additions & 2 deletions web/skins/classic/views/monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class="nav-link<?php echo $tab == $name ? ' active' : '' ?>"
?>
<li class="Id">
<label><?php echo translate('Id') ?></label>
<input type="number" step="1" min="1" name="newMonitor[Id]" placeholder="leave blank for auto"/><br/>
<input type="number" step="1" min="1" name="newMonitor[Id]" placeholder="<?php echo translate('leave blank for auto') ?>"/><br/>
<?php
if (count($available_monitor_ids)) {
echo 'Some available ids: '.implode(', ', array_slice($available_monitor_ids, 0, 10));
Expand Down Expand Up @@ -1341,7 +1341,7 @@ class="nav-link<?php echo $tab == $name ? ' active' : '' ?>"
?>
<li>
<label><?php echo translate('TimestampLabelFormat') ?></label>
<input type="text" name="newMonitor[LabelFormat]" value="<?php echo validHtmlStr($monitor->LabelFormat()) ?>" placeholder="Python strftime format. %f for hundredths, %N for Monitor Name, %Q for show text."/>
<input type="text" name="newMonitor[LabelFormat]" value="<?php echo validHtmlStr($monitor->LabelFormat()) ?>" placeholder="<?php echo translate('Python strftime format. %f for hundredths, %N for Monitor Name, %Q for show text.') ?>"/>
</li>
<li>
<label><?php echo translate('TimestampLabelX') ?></label>
Expand Down
2 changes: 1 addition & 1 deletion web/skins/classic/views/montage.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
<button type="button" id="EditLayout" data-on-click-this="edit_layout"><?php echo translate('EditLayout') ?></button>
<button type="button" id="btnDeleteLayout" class="btn btn-danger" value="Delete" data-on-click-this="delete_layout" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Delete layout') ?>" disabled><i class="material-icons md-18">delete</i></button>
<span id="SaveLayout" style="display:none;">
<input type="text" name="Name" placeholder="Enter new name for layout if desired" autocomplete="off"/>
<input type="text" name="Name" placeholder="<?php echo translate('Enter new name for layout if desired') ?>" autocomplete="off"/>
<button type="button" value="Save" data-on-click-this="save_layout"><?php echo translate('Save') ?></button>
<button type="button" value="Cancel" data-on-click-this="cancel_layout"><?php echo translate('Cancel') ?></button>
</span>
Expand Down

0 comments on commit 1153df7

Please sign in to comment.