Skip to content

Commit a0cc21e

Browse files
authored
Remove productization view (#968)
* Update compare-locales 7.2.3 * Remove productization view
2 parents 46295e7 + 35fa04c commit a0cc21e

File tree

11 files changed

+3
-340
lines changed

11 files changed

+3
-340
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ web/assets
1919
web/data.tar.gz
2020
web/download/.htaccess
2121
web/download/*.tmx
22-
web/p12n
2322
web/TMX

app/inc/dispatcher.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@
8585
$page_descr = '';
8686
$css_files[] = 'changelog.css';
8787
break;
88-
case 'productization':
89-
$view = 'productization';
90-
$page_title = 'Productization Overview';
91-
$page_descr = 'Show productization aspects for this locale.';
92-
$css_files[] = 'productization.css';
93-
break;
9488
case 'rss':
9589
$controller = 'changelog';
9690
$template = false;

app/inc/urls.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
'downloads' => 'downloads',
1212
'empty-strings' => 'empty_strings',
1313
'news' => 'changelog',
14-
'productization' => 'productization',
1514
'rss' => 'rss',
1615
'showrepos' => 'showrepos',
1716
'stats' => 'stats',

app/scripts/glossaire.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,6 @@ updateOtherProduct firefox_ios "Firefox for iOS" tmx_xliff
290290
updateOtherProduct focus_ios "Focus for iOS" tmx_xliff
291291
updateOtherProduct focus_android "Focus for Android" tmx_gettext
292292

293-
# Generate productization data
294-
cd $install
295-
echogreen "Extracting p12n data"
296-
nice -20 python $libraries/p12n/p12n_extract/p12n_extract.py $config
297-
298293
# Create a file to get the timestamp of the last string extraction for caching
299294
echogreen "Creating extraction timestamp for cache system"
300295
touch cache/lastdataupdate.txt

app/scripts/setup.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,6 @@ function echogreen() {
2323
echo -e "$GREEN$*$NORMAL"
2424
}
2525

26-
function setupExternalLibraries() {
27-
# Check out or update external p12n-extract library
28-
if [ ! -d $libraries/p12n/.git ]
29-
then
30-
echogreen "Checking out the p12n-extract library in $libraries"
31-
cd $libraries
32-
git clone https://github.com/flodolo/p12n-extract/ p12n
33-
cd $install
34-
else
35-
echogreen "Updating the p12n-extract library in $libraries"
36-
cd $libraries/p12n
37-
git pull
38-
cd $install
39-
fi
40-
}
41-
4226
function setupVirtualEnv() {
4327
# Create virtualenv folder if missing
4428
cd $install
@@ -158,7 +142,6 @@ fi
158142
echo "${CURRENT_TIP:0:7}${DEV_VERSION}" | tr -d '\n' > "${install}/cache/version.txt"
159143
echo "${LATEST_TAG_NAME}" | tr -d '\n' > "${install}/cache/tag.txt"
160144

161-
setupExternalLibraries
162145
setupVirtualEnv
163146
initGeckoStringsRepo
164147
initOtherSources

app/views/credits.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ul>
99
<li>PHP</li>
1010
<li>Bash for installation scripts and cron jobs</li>
11-
<li>Python for extracting strings (compare-locales) and productization data (p12n-extract)</li>
11+
<li>Python for extracting strings (compare-locales)</li>
1212
<li><a href="https://getcomposer.org/">Composer</a>, a dependency manager for PHP projects</li>
1313
<li><a href="https://www.atoum.org/">Atoum</a>, a unit testing framework for PHP</li>
1414
<li><a href="https://www.jquery.com/">jQuery</a>, a JavaScript library</li>

app/views/productization.php

Lines changed: 0 additions & 198 deletions
This file was deleted.

app/views/templates/base.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@
4747
{$li_link('commandkeys', 'Check your keyboard shortcuts', 'Keyboard Shortcuts')}
4848
{$li_link('checkvariables', 'Check what variable differences there are from English', 'Check Variables')}
4949
{$li_link('empty_strings', 'Display empty strings in English or locale', 'Empty Strings')}
50-
{$li_link('unchangedstrings', 'Display all strings identical to English', 'Unchanged Strings')}
5150
</ul>
5251
<ul>
52+
{$li_link('unchangedstrings', 'Display all strings identical to English', 'Unchanged Strings')}
5353
{$li_link('unlocalized', 'Display common words remaining in English', 'Unlocalized Words')}
5454
{$li_link('consistency', 'Translation Consistency', 'Translation Consistency')}
5555
{$li_link('showrepos', 'Check the health status of locales', 'Health Status Overview')}
56-
{$li_link('productization', 'Show productization aspects', 'Productization')}
5756
</ul>
5857
</div>
5958
<div class="linkscolumn">

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
compare-locales==5.1.1
1+
compare-locales==7.2.3
22
six==1.12.0

tests/functional/pages.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
['empty-strings/', 200, 'Empty Strings', 'Locale'],
1212
['downloads/', 200, 'Select which strings', 'Generate the TMX'],
1313
['news/', 200, 'Version 4.0', 'End user visible changes'],
14-
['productization/', 200, 'Show productization', 'Productization file does not exist.'],
1514
['showrepos/?locale=en-GB', 200, 'Check the health status of locales.', 'Health status'],
1615
['stats/', 200, 'Repository status overview', 'Status estimate'],
1716
['string/?entity=browser/chrome/browser/places/places.properties:bookmarkResultLabel&repo=gecko_strings', 200, 'supportedLocales', 'Marque-page'],

0 commit comments

Comments
 (0)