PluginProbe
Translate and Go multilingual – Automatic AI translation – wpLingua / 2.16.2
Translate and Go multilingual – Automatic AI translation – wpLingua v2.16.2
2.16.4 2.16.3 2.16.2 2.16.1 2.16.0 2.15.2 2.15.1 2.15.0 2.14.3 2.14.2 2.14.1 2.14.0 2.13.1 2.13.0 2.12.3 2.12.2 2.12.1 trunk 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.2.0 1.2.1 All 109 releases
wplingua / data / switcher.php

switcher.php in Translate and Go multilingual – Automatic AI translation – wpLingua 2.16.2, at data/switcher.php

148 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // If this file is called directly, abort.
4 if ( ! defined( 'WPINC' ) ) {
5 die;
6 }
7
8
9 // ------------------------------------------------------------------------
10 // Data : Switcher options
11 // ------------------------------------------------------------------------
12
13 /**
14 * Get options for switcher insertion
15 *
16 * @return array
17 */
18 function wplng_data_switcher_valid_insert() {
19 return array(
20 'bottom-right' => __( 'Bottom right', 'wplingua' ),
21 'bottom-center' => __( 'Bottom center', 'wplingua' ),
22 'bottom-left' => __( 'Bottom left', 'wplingua' ),
23 'none' => __( 'None', 'wplingua' ),
24 );
25 }
26
27
28 /**
29 * Get options for switcher themes
30 *
31 * @return array
32 */
33 function wplng_data_switcher_valid_theme() {
34 return array(
35 'light-double-smooth' => __( 'Light - Double - Smooth', 'wplingua' ),
36 'light-double-square' => __( 'Light - Double - Square', 'wplingua' ),
37 'light-simple-smooth' => __( 'Light - Simple - Smooth', 'wplingua' ),
38 'light-simple-square' => __( 'Light - Simple - Square', 'wplingua' ),
39 'grey-double-smooth' => __( 'Grey - Double - Smooth', 'wplingua' ),
40 'grey-double-square' => __( 'Grey - Double - Square', 'wplingua' ),
41 'grey-simple-smooth' => __( 'Grey - Simple - Smooth', 'wplingua' ),
42 'grey-simple-square' => __( 'Grey - Simple - Square', 'wplingua' ),
43 'dark-double-smooth' => __( 'Dark - Double - Smooth', 'wplingua' ),
44 'dark-double-square' => __( 'Dark - Double - Square', 'wplingua' ),
45 'dark-simple-smooth' => __( 'Dark - Simple - Smooth', 'wplingua' ),
46 'dark-simple-square' => __( 'Dark - Simple - Square', 'wplingua' ),
47 'blurblack-double-smooth' => __( 'Blur Black - Double - Smooth', 'wplingua' ),
48 'blurblack-double-square' => __( 'Blur Black - Double - Square', 'wplingua' ),
49 'blurblack-simple-smooth' => __( 'Blur Black - Simple - Smooth', 'wplingua' ),
50 'blurblack-simple-square' => __( 'Blur Black - Simple - Square', 'wplingua' ),
51 'blurwhite-double-smooth' => __( 'Blur White - Double - Smooth', 'wplingua' ),
52 'blurwhite-double-square' => __( 'Blur White - Double - Square', 'wplingua' ),
53 'blurwhite-simple-smooth' => __( 'Blur White - Simple - Smooth', 'wplingua' ),
54 'blurwhite-simple-square' => __( 'Blur White - Simple - Square', 'wplingua' ),
55 );
56 }
57
58
59 /**
60 * Get options for switcher style
61 *
62 * @return array
63 */
64 function wplng_data_switcher_valid_style() {
65 return array(
66 'list' => __( 'Inline list', 'wplingua' ),
67 'block' => __( 'Block', 'wplingua' ),
68 'dropdown' => __( 'Dropdown', 'wplingua' ),
69 );
70 }
71
72
73 /**
74 * Get options for switcher name format
75 *
76 * @return array
77 */
78 function wplng_data_switcher_valid_name_format() {
79 return array(
80 'original' => __( 'Original name', 'wplingua' ),
81 'name' => __( 'Translated name', 'wplingua' ),
82 'id' => __( 'Language ID', 'wplingua' ),
83 'none' => __( 'No display', 'wplingua' ),
84 );
85 }
86
87
88 /**
89 * Get options for switcher flags style
90 *
91 * @return array
92 */
93 function wplng_data_switcher_valid_flags_style() {
94 return array(
95 'circle' => __( 'Circle', 'wplingua' ),
96 'rectangular' => __( 'Rectangular', 'wplingua' ),
97 'wave' => __( 'Wave', 'wplingua' ),
98 'none' => __( 'No display', 'wplingua' ),
99 );
100 }
101
102
103 // ------------------------------------------------------------------------
104 // Data : Switcher nav menu options
105 // ------------------------------------------------------------------------
106
107 /**
108 * Get options for switcher name format in nav menu
109 *
110 * @return array
111 */
112 function wplng_data_switcher_nav_menu_valid_name_format() {
113 return array(
114 'o' => __( 'Original name', 'wplingua' ),
115 't' => __( 'Translated name', 'wplingua' ),
116 'i' => __( 'Language ID', 'wplingua' ),
117 'n' => __( 'No display', 'wplingua' ),
118 );
119 }
120
121
122 /**
123 * Get options for switcher flags style in nav menu
124 *
125 * @return array
126 */
127 function wplng_data_switcher_nav_menu_valid_flags_style() {
128 return array(
129 'y' => __( 'Display', 'wplingua' ),
130 'n' => __( 'No display', 'wplingua' ),
131 );
132 }
133
134
135 /**
136 * Get options for switcher layout in nav menu
137 *
138 * @return array
139 */
140 function wplng_data_switcher_nav_menu_valid_layout() {
141 return array(
142 't' => __( 'List without current language', 'wplingua' ),
143 'l' => __( 'List without active class', 'wplingua' ),
144 'a' => __( 'List with active class', 'wplingua' ),
145 's' => __( 'Sub-list', 'wplingua' ),
146 );
147 }
148