-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Philippe GODOT
committed
Nov 29, 2023
1 parent
1e7491f
commit 530fa27
Showing
10 changed files
with
873 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--------------------------------------------------------------------- | ||
groupcategory is a plugin to customizes the list of accessible | ||
ticket categories for ticket requesters. | ||
--------------------------------------------------------------------- | ||
LICENSE | ||
|
||
This file is part of groupcategory. | ||
|
||
rgpdTools is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
rgpdTools is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with Formcreator. If not, see <http://www.gnu.org/licenses/>. | ||
--------------------------------------------------------------------- | ||
@copyright Copyright © 2022-2023 probeSys' | ||
@license http://www.gnu.org/licenses/agpl.txt AGPLv3+ | ||
@link https://github.com/Probesys/glpi-plugins-groupcategory | ||
@link https://plugins.glpi-project.org/#/plugin/groupcategory | ||
--------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
soft='GroupCategory' | ||
version="$(grep PLUGIN_GROUPCATEGORY_VERSION setup.php |cut -f 4 -d\'|grep -v ^$)" | ||
email=contact@probesys.com | ||
copyright='PROBESYS' | ||
|
||
# All strings to create pot | ||
xgettext *.php */*.php -copyright-holder="$copyright" --package-name="$soft" --package-version="$version" --msgid-bugs-address="$email" -o locales/groupcategory.pot -L PHP --from-code=UTF-8 --force-po -i --keyword=_n:1,2 --keyword=__:1,2c --keyword=_e | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# -*- coding: UTF8 -*- | ||
|
||
POTFILE="./projectbridge.pot" | ||
|
||
if [ ! -f ${POTFILE} ]; then | ||
echo "Error !!" | ||
echo "POT file ${POTFILE} not found: exiting." | ||
exit 1 | ||
fi | ||
|
||
for file in $(ls -1 *po) | ||
do | ||
msgmerge -U --backup=none $file projectbridge.pot | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/perl | ||
#!/usr/bin/perl -w | ||
|
||
if (@ARGV!=0){ | ||
print "USAGE update_mo.pl\n\n"; | ||
|
||
exit(); | ||
} | ||
|
||
|
||
opendir(DIRHANDLE,'locales')||die "ERROR: can not read current directory\n"; | ||
foreach (readdir(DIRHANDLE)){ | ||
if ($_ ne '..' && $_ ne '.'){ | ||
|
||
if(!(-l "$dir/$_")){ | ||
if (index($_,".po",0)==length($_)-3) { | ||
$lang=$_; | ||
$lang=~s/\.po//; | ||
|
||
`msgfmt locales/$_ -o locales/$lang.mo`; | ||
} | ||
} | ||
|
||
} | ||
} | ||
closedir DIRHANDLE; | ||
|
||
# | ||
# |