bash - Search all untranslated text strings in PHP and HTML files -
i have upcomming task of translating entire website. website partially translated, meaning utilizes translation features of zendframework (v1).
translations stored in array based language files this: [en.php]
<?php return array( // language config 'config_languagedirection' => 'ltr', // site wide translations 'site_name' => 'my site', 'site_slogan' => 'le slogan', 'site_keywords' => 'key words', 'site_description' => 'yada yada yada', 'header_logo_img_alt' => 'my site', 'fat_footer_company_details' => 'trivial copyright information', 'company_name' => 'unobambino', );
is there script in php or bash/shell, can search directories , find untranslated strings?
i'm thinking
- text in html attributes 'alt' , 'title'
- text between html tags
- text in php code, between single , double quotes.
- not text used in function _('like this') or _("like this") - considered translated.
- other types haven't thought upon
3rd party software of interest, if gets job done.
Comments
Post a Comment