PluginProbe ʕ •ᴥ•ʔ
TranslatePress – Translate Multilingual sites with AI Translation / 1.6.7
TranslatePress – Translate Multilingual sites with AI Translation v1.6.7
3.2.1 3.2 3.1.9 3.1.8 3.1.7 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.23 2.9.24 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.10 2.10.1 2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.10.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4
translatepress-multilingual / partials / main-settings-page.php
translatepress-multilingual / partials Last commit date
addons-settings-page.php 6 years ago advanced-settings-page.php 6 years ago error-manager-page.php 6 years ago language-switcher-shortcode.php 6 years ago license-settings-page.php 6 years ago machine-translation-settings-page.php 6 years ago main-settings-language-selector.php 6 years ago main-settings-page.php 6 years ago settings-navigation-tabs.php 6 years ago test-api-settings-page.php 6 years ago translation-manager.php 6 years ago trp-remove-duplicate-rows.php 6 years ago trp-update-database.php 6 years ago
main-settings-page.php
119 lines
1
2 <div id="trp-main-settings" class="wrap">
3 <form method="post" action="options.php">
4 <?php settings_fields( 'trp_settings' ); ?>
5 <h1> <?php esc_html_e( 'TranslatePress Settings', 'translatepress-multilingual' );?></h1>
6 <?php do_action ( 'trp_settings_navigation_tabs' ); ?>
7
8 <table id="trp-options" class="form-table">
9 <tr>
10 <th scope="row"><?php esc_html_e( 'Default Language', 'translatepress-multilingual' ); ?> </th>
11 <td>
12 <select id="trp-default-language" name="trp_settings[default-language]" class="trp-select2">
13 <?php
14 foreach( $languages as $language_code => $language_name ){ ?>
15 <option title="<?php echo esc_attr( $language_code ); ?>" value="<?php echo esc_attr( $language_code ); ?>" <?php echo ( $this->settings['default-language'] == $language_code ? 'selected' : '' ); ?> >
16 <?php echo esc_html( $language_name ); ?>
17 </option>
18 <?php }?>
19 </select>
20 <p class="description">
21 <?php esc_html_e( 'Select the original language of your content.', 'translatepress-multilingual' ); ?>
22 </p>
23
24 <p class="warning" style="display: none;" >
25 <?php esc_html_e( 'WARNING. Changing the default language will invalidate existing translations.', 'translatepress-multilingual' ); ?><br/>
26 <?php esc_html_e( 'Even changing from en_US to en_GB, because they are treated as two different languages.', 'translatepress-multilingual' ); ?><br/>
27 <?php esc_html_e( 'In most cases changing the default flag is all it is needed: ', 'translatepress-multilingual' ); ?>
28 <a href="https://translatepress.com/docs/developers/replace-default-flags/"><?php esc_html_e( 'replace the default flag', 'translatepress-multilingual' ); ?></a>
29 </p>
30
31 </td>
32 </tr>
33
34 <?php do_action( 'trp_language_selector', $languages ); ?>
35
36 <tr>
37 <th scope="row"><?php esc_html_e( 'Native language name', 'translatepress-multilingual' ); ?> </th>
38 <td>
39 <select id="trp-native-language-name" name="trp_settings[native_or_english_name]" class="trp-select">
40 <option value="english_name" <?php selected( $this->settings['native_or_english_name'], 'english_name' ); ?>><?php esc_html_e( 'No', 'translatepress-multilingual') ?></option>
41 <option value="native_name" <?php selected( $this->settings['native_or_english_name'], 'native_name' ); ?>><?php esc_html_e( 'Yes', 'translatepress-multilingual') ?></option>
42 </select>
43 <p class="description">
44 <?php esc_html_e( 'Select Yes if you want to display languages in their native names. Otherwise, languages will be displayed in English.', 'translatepress-multilingual' ); ?>
45 </p>
46 </td>
47 </tr>
48
49 <tr>
50 <th scope="row"><?php esc_html_e( 'Use a subdirectory for the default language', 'translatepress-multilingual' ); ?> </th>
51 <td>
52 <select id="trp-subdirectory-for-default-language" name="trp_settings[add-subdirectory-to-default-language]" class="trp-select">
53 <option value="no" <?php selected( $this->settings['add-subdirectory-to-default-language'], 'no' ); ?>><?php esc_html_e( 'No', 'translatepress-multilingual') ?></option>
54 <option value="yes" <?php selected( $this->settings['add-subdirectory-to-default-language'], 'yes' ); ?>><?php esc_html_e( 'Yes', 'translatepress-multilingual') ?></option>
55 </select>
56 <p class="description">
57 <?php echo wp_kses ( __( 'Select Yes if you want to add the subdirectory in the URL for the default language.</br>By selecting Yes, the default language seen by website visitors will become the first one in the "All Languages" list.', 'translatepress-multilingual' ), array( 'br' => array() ) ); ?>
58 </p>
59 </td>
60 </tr>
61
62 <tr>
63 <th scope="row"><?php esc_html_e( 'Force language in custom links', 'translatepress-multilingual' ); ?> </th>
64 <td>
65 <select id="trp-force-language-in-custom-links" name="trp_settings[force-language-to-custom-links]" class="trp-select">
66 <option value="no" <?php selected( $this->settings['force-language-to-custom-links'], 'no' ); ?>><?php esc_html_e( 'No', 'translatepress-multilingual') ?></option>
67 <option value="yes" <?php selected( $this->settings['force-language-to-custom-links'], 'yes' ); ?>><?php esc_html_e( 'Yes', 'translatepress-multilingual') ?></option>
68 </select>
69 <p class="description">
70 <?php esc_html_e( 'Select Yes if you want to force custom links without language encoding to keep the currently selected language.', 'translatepress-multilingual' ); ?>
71 </p>
72 </td>
73 </tr>
74
75 <tr>
76 <th scope="row"><?php esc_html_e( 'Language Switcher', 'translatepress-multilingual' ); ?> </th>
77 <td>
78 <div class="trp-ls-type">
79 <input type="checkbox" disabled checked id="trp-ls-shortcode" ><b><?php esc_html_e( 'Shortcode ', 'translatepress-multilingual' ); ?>[language-switcher] </b>
80 <div>
81 <?php $this->output_language_switcher_select( 'shortcode-options', $this->settings['shortcode-options'] ); ?>
82 </div>
83 <p class="description">
84 <?php esc_html_e( 'Use shortcode on any page or widget.', 'translatepress-multilingual' ); ?>
85 </p>
86 </div>
87 <div class="trp-ls-type">
88 <label><input type="checkbox" id="trp-ls-menu" disabled checked ><b><?php esc_html_e( 'Menu item', 'translatepress-multilingual' ); ?></b></label>
89 <div>
90 <?php $this->output_language_switcher_select( 'menu-options', $this->settings['menu-options'] ); ?>
91 </div>
92 <p class="description">
93 <?php
94 $link_start = '<a href="' . esc_url( admin_url( 'nav-menus.php' ) ) .'">';
95 $link_end = '</a>';
96 printf( wp_kses( __( 'Go to %1$s Appearance -> Menus%2$s to add languages to the Language Switcher in any menu.', 'translatepress-multilingual' ), [ 'a' => [ 'href' => [] ] ] ), $link_start, $link_end ); ?>
97 <a href="https://translatepress.com/docs/settings/#language-switcher"><?php esc_html_e( 'Learn more in our documentation.', 'translatepress-multilingual' ); ?></a>
98 </p>
99 </div>
100 <div class="trp-ls-type">
101 <label><input type="checkbox" id="trp-ls-floater" name="trp_settings[trp-ls-floater]" value="yes" <?php if ( isset($this->settings['trp-ls-floater']) && ( $this->settings['trp-ls-floater'] == 'yes' ) ){ echo 'checked'; } ?>><b><?php esc_html_e( 'Floating language selection', 'translatepress-multilingual' ); ?></b></label>
102 <div>
103 <?php $this->output_language_switcher_select( 'floater-options', $this->settings['floater-options'] ); ?>
104 <?php $this->output_language_switcher_floater_possition( $this->settings['floater-position'] ); ?>
105 </div>
106 <p class="description">
107 <?php esc_html_e( 'Add a floating dropdown that follows the user on every page.', 'translatepress-multilingual' ); ?>
108 </p>
109 </div>
110 </td>
111 </tr>
112
113 <?php do_action ( 'trp_extra_settings', $this->settings ); ?>
114 </table>
115
116 <p class="submit"><input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes' ); ?>" /></p>
117 </form>
118 </div>
119