pandorafms/pandora_console/extras/check_other_languages.sh
mdtrooper bd6fe40383 2012-10-09 Miguel de Dios <miguel.dedios@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
	extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
	extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql, pandoradb.sql,
	pandoradb.postgreSQL.sql, pandoradb.oracle.sql: added flag field
	"pandoras_children" into the table "tnetwork_map".
	
	* extras/check_other_languages.sh, include/functions_agents.php,
	operation/agentes/networkmap_list.php: cleaned source code style.
	
	* include/functions_networkmap.php: a lot of fixes for the
	metaconsole, and other changes now generate a graphviz code more
	clean and human readble (good for maintenaince).
	
	* include/ajax/networkmap.ajax.php: into the ajax call
	"get_networkmap_summary" started to adapt to call from the
	metaconsole (WIP).
	
	* include/functions_ui.php: fixes for metaconsole links to images in
	the functions "ui_print_message", "ui_print_group_icon" and
	"ui_toggle". And added the parameter $return in the function
	"ui_toggle" for to return the html code as string.
	
	* operation/agentes/ver_agente.php: into the ajax call
	"get_agent_status_tooltip" adapt to call from the metaconsole.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7057 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-09 15:51:33 +00:00

29 lines
641 B
Bash
Executable File

#!/bin/bash
# This script check for currently implemented ENGLISH help files and detect missing help files in other languages (passed as command line parameter)
if [ -z "$1" ]
then
echo "Check missing help files. Needed language code for search"
echo "For example: es "
exit
fi
if [ ! -d "include/help/en" ]
then
echo "I need to run in Pandora FMS Console root directory"
exit
fi
mkdir "/tmp/$1" >> /dev/null 2> /dev/null
for a in `ls include/help/en`
do
ESTA=`find include/help/$1/$a 2> /dev/null | wc -l`
if [ $ESTA == 0 ]
then
echo "Missing $a, and copying to /tmp/$1"
cp include/help/en/$a "/tmp/$1"
fi
done