Skip to content

Commit

Permalink
feat: update search text
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliwenwenwen committed Apr 1, 2024
1 parent 6176472 commit 133808e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function render(): void
<?php if ($this->has_filters) { ?>
<div class="banner-case-study-archive__filters">
<select class="banner-case-study-archive__filter-control" name="filter_industry" id="filter_industry" aria-label="<?php esc_attr_e('Industry', Constants\TextDomains::DEFAULT); ?>">
<option value=""><?php esc_html_e('Filter by Industry', Constants\TextDomains::DEFAULT); ?></option>
<option value=""><?php esc_html_e('業種でフィルタ', Constants\TextDomains::DEFAULT); ?></option>
<?php
foreach ($industry_options as $option) {
echo $option->render($cur_industry); // phpcs:ignore
Expand All @@ -117,12 +117,12 @@ public function render(): void
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ public function render(): void
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);
?>
Expand Down
2 changes: 1 addition & 1 deletion pingcap-jp/inc/PingCAP/Components/CaseStudyTestimonial.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(array $params)
$this->content = Arrays::get_value_as_string($params, 'content');
$this->attribution = Arrays::get_value_as_string($params, 'attribution');
$this->permalink = Arrays::get_value_as_string($params, 'permalink');
$this->button_text = Arrays::get_value_as_string($params, 'button_text', 'Get Case Study');
$this->button_text = Arrays::get_value_as_string($params, 'button_text', '詳細を見る');
}

public function render(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function render(): void
<div class="posts-list-case-study__filters-container contain">
<div class="banner-case-study-archive__filters">
<select class="banner-case-study-archive__filter-control" name="filter_industry" id="filter_industry" aria-label="<?php esc_attr_e('Industry', Constants\TextDomains::DEFAULT); ?>">
<option value=""><?php esc_html_e('Filter by Industry', Constants\TextDomains::DEFAULT); ?></option>
<option value=""><?php esc_html_e('業種でフィルタ', Constants\TextDomains::DEFAULT); ?></option>
<?php
foreach ($industry_options as $option) {
echo $option->render($cur_industry); // phpcs:ignore
Expand All @@ -167,12 +167,12 @@ public function render(): void
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public function render(): void
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ public function render(): void
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);
}
Expand Down
6 changes: 3 additions & 3 deletions pingcap-jp/templates/archive-partner.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
'add_input_attrs' => [
'id' => 'search',
'name' => 'search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);

Expand Down
6 changes: 3 additions & 3 deletions pingcap-jp/templates/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
'add_input_attrs' => [
'id' => 'filter_search',
'name' => 'filter_search',
'placeholder' => __('Search', Constants\TextDomains::DEFAULT),
'placeholder' => __('検索', Constants\TextDomains::DEFAULT),
'value' => $cur_search,
'aria-label' => __('Search text', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
'add_icon_container_attrs' => [
'aria-label' => __('Search', Constants\TextDomains::DEFAULT)
'aria-label' => __('検索', Constants\TextDomains::DEFAULT)
],
]);

Expand Down

0 comments on commit 133808e

Please sign in to comment.