3 #**********************************************************************
4 # Copyright (C) 2024 - The Geeqie Team
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License along
19 # with this program; if not, write to the Free Software Foundation, Inc.,
20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #**********************************************************************
24 ## @brief Locate strings not marked for translation
26 ## The check is not comprehensive - the exclusions make this
29 ## @FIXME Strings starting with a space, or a lower-case alpha
30 ## or if there is more than one string per line, are not
33 ## The regex search is for a character sequence: \n
35 ## upper-case alpha character \n
36 ## alpha character or space \n
37 ## printable character \n
38 ## previous character type repeated one or more times \n
41 ## The above sequence preceded by "_(" will not be a hit.
100 gtk_action_group_get_action
101 gtk_container_child_get
102 gtk_widget_add_accelerator
128 \"Background color as a GdkRGBA\"\,
129 \"Background color\"\,
131 \"Draw focus indicator\"\,
135 \"Foreground color as a GdkRGBA\"\,
136 \"Foreground color\"\,
138 \"GQvCellRendererIcon\"\,
139 \"Height of icon excluding text\"\,
140 \"Marks bit array\"\,
142 \"Number of marks\"\,
148 \"The pixbuf to render\"\,
150 \"Whether the marks are displayed\"\,
151 \"Whether the text is displayed\"\,
152 \"Whether this tag affects the background color\"\,
153 \"Whether this tag affects the foreground color\"\,
157 \"Delay image update\"\,
158 \"Display cache size MiB\"\,
159 \"Expand image in autozoom.\"\,
160 \"Fit window to image size\"\,
161 \"Image actively loading\"\,
162 \"Image rendering complete\"\,
163 \"Limit size of image when autofitting\"\,
164 \"Limit size of parent window\"\,
165 \"New image scroll reset\"\,
166 \"Number of tiles to retain in memory at any one time.\"\,
167 \"Size increase limit of image when autofitting\"\,
168 \"Size limit of image when autofitting\"\,
169 \"Size limit of parent window\"\,
170 \"Tile cache count\"\,
176 G_CALLBACK(print_set_font_cb)\, const_cast<char \*>(\"Image text font\"));
177 G_CALLBACK(print_set_font_cb)\, const_cast<char \*>(\"Page text font\"));
180 render_intent = g_strdup(\"Absolute Colorimetric\");
181 render_intent = g_strdup(\"Absolute Colorimetric\");
182 render_intent = g_strdup(\"Perceptual\");
183 render_intent = g_strdup(\"Relative Colorimetric\");
184 render_intent = g_strdup(\"Saturation\");
187 exclude_files_array="
196 filename_printed="no"
199 while read -r omit_file
201 if [ -n "$omit_file" ]
203 if echo "$1" | grep --quiet "$omit_file"
212 if [ "$omit" = "FILE_OK" ]
214 while read -r infile_line
216 if [ -n "$infile_line" ]
219 while read -r omit_text
221 if [ -n "$omit_text" ]
223 if echo "$infile_line" | grep --quiet "$omit_text"
231 if [ "$omit" = "LINE_NOT_OK" ]
233 if [ "$filename_printed" = "no" ]
235 printf "\nfile: %s\n" "$1"
236 filename_printed="yes"
239 no_tabs=$(echo "$infile_line" | tr -s '\t')
240 printf "line: %s\n" "$no_tabs"
244 $(cat --number "$1" | grep --perl-regexp '(?<!_\()"[[:upper:]]([[:lower:]]|[[:space:]])[[:print:]]+"')
248 if [ "$filename_printed" = "yes" ]