Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--- 2.0 ---

feature: Allow creation of named Trees
feature: Allow Adding optional sub-branches to new Trees
feature: Add more callbacks to make navaigation smoother
feature: Move away from concept of 'Personal Trees' till Cacti arrives there

--- 1.1 ---

issue: Correct some image issues
issue: Made default sorting Alphabetic for new trees
issue; Made default sorting Inherited for new branches/graphs

--- 1.0 ---

feature: Updated to work with 1.x

--- 0.2 ---

feature: Added option to display as a console menu item instead
feature: Added option to save to an existing Graph Tree

--- v0.1 ---

Initial Release
6 changes: 3 additions & 3 deletions INFO
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[info]
compat = 1.1.9
compat = 1.2.17
author=Howard Jones
homepage=https://github.com/howardjones/cacti-quicktree
webpage=https://github.com/howardjones/cacti-quicktree
longname=QuickTree for Cacti 1.x
longname=QuickTree for Cacti
name=quicktree
version=1.1.0
version=2.0
email=howie@thingy.com
url=http://www.network-weathermap.com/versions.php
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Make playlists of graphs in Cacti

***NOTE*** Version 1.0 of QuickTree only works on Cacti 1.1.9 or above!
***NOTE*** Version 2.0 of QuickTree only works on Cacti 1.2.17 or above!

***NOTE*** Version 0.2 of QuickTree only works on Cacti 0.8.x!

Expand Down
4 changes: 1 addition & 3 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php

header("Location:../index.php");
header('Location:../index.php');

// vim:ts=4:sw=4:
?>
Binary file added locales/LC_MESSAGES/ar-SA.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/bg-BG.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/de-DE.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/el-GR.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/es-ES.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/fr-FR.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/he-IL.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/hi-IN.mo
Binary file not shown.
4 changes: 4 additions & 0 deletions locales/LC_MESSAGES/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

header("Location:../index.php");

Binary file added locales/LC_MESSAGES/it-IT.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/ja-JP.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/ko-KR.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/nl-NL.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/pl-PL.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/pt-BR.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/pt-PT.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/ru-RU.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/sv-SE.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/tr-TR.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/vi-VN.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/zh-CN.mo
Binary file not shown.
Binary file added locales/LC_MESSAGES/zh-TW.mo
Binary file not shown.
75 changes: 75 additions & 0 deletions locales/build_gettext.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#!/bin/sh
#+-------------------------------------------------------------------------+
#| Copyright (C) 2004-2020 The Cacti Group |
#| |
#| This program 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 2 |
#| of the License, or (at your option) any later version. |
#| |
#| This program 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. |
#+-------------------------------------------------------------------------+
#| Cacti: The Complete RRDtool-based Graphing Solution |
#+-------------------------------------------------------------------------+
#| This code is designed, written, and maintained by the Cacti Group. See |
#| about.php and/or the AUTHORS file for specific developer information. |
#+-------------------------------------------------------------------------+
#| http://www.cacti.net/ |
#+-------------------------------------------------------------------------+

# get script name
SCRIPT_NAME=`basename ${0}`

# locate base directory of Cacti
REALPATH_BIN=`which realpath 2>/dev/null`
if [ $? -gt 0 ]
then
echo "ERROR: unable to locate realpath"
echo
echo "Linux: Confirm coreutils installed"
echo "Mac: Brew install coreutils"
echo
exit 1
fi
BASE_PATH=`${REALPATH_BIN} ${0} | sed s#/locales/${SCRIPT_NAME}##`

# locate xgettext for processing
XGETTEXT_BIN=`which xgettext 2>/dev/null`
if [ $? -gt 0 ]
then
echo "ERROR: Unable to locate xgettext"
echo
echo "Linux: Install GNU gettext"
echo "Mac: Brew install GNU gettext"
echo
exit 1
fi

# Update main gettext POT file with application strings
echo "Updating Cacti language gettext language file..."
cd ${BASE_PATH}

${XGETTEXT_BIN} --no-wrap --copyright-holder="The Cacti Group" --package-name="Cacti" --package-version=`cat include/cacti_version` --msgid-bugs-address="developers@cacti.net" -F -k__gettext -k__ -k__n:1,2 -k__x:1c,2 -k__xn:1c,2,3 -k__esc -k__esc_n:1,2 -k__esc_x:1c,2 -k__esc_xn:1c,2,3 -k__date -o locales/po/cacti.pot `find . -maxdepth 2 -name \*.php`

sed -i 's/FULL NAME <EMAIL@ADDRESS\>/Cacti Developers <developers@cacti.net>/g' locales/po/cacti.pot
sed -i 's/LANGUAGE <LL@li.org>/Cacti Developers <developers@cacti.net>/g' locales/po/cacti.pot
sed -i 's/CHARSET/UTF-8/g' locales/po/cacti.pot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, this should be @howardjones contact details rather than Cacti's since this is his plugin. If he was wliling to transfer the ownership over, this could be kept as a Cacti's detalis.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I thought I already had! :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I just copied it from another directory.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@howardjones if you wish to do that, you should add a commit that updates the copyright to the Cacti standard one (just as a way of code history of the agreeing to the transfer), then use the Transfer Repository within settings on the Repo. If you send it to me, I can then transfer it into Cacti's org account.


# Merge any changes to POT file into language files
echo "Merging updates to language files..."

for file in `ls -1 locales/po/*.po`;do
echo "Updating $file from cacti.pot"
msgmerge --backup off --no-wrap --update -F $file locales/po/cacti.pot
done

for file in `ls -1 locales/po/*.po`;do
ofile=$(basename --suffix=.po ${file})
echo "Converting $file to LC_MESSAGES/${ofile}.mo"
msgfmt ${file} -o locales/LC_MESSAGES/${ofile}.mo
done

exit 0
5 changes: 5 additions & 0 deletions locales/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

header("Location:../index.php");

?>
250 changes: 250 additions & 0 deletions locales/po/ar-SA.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: developers@cacti.net\n"
"POT-Creation-Date: 2022-01-30 20:48-0500\n"
"PO-Revision-Date: 2022-01-30 20:54-0500\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ar_SA\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.0.1\n"

#: quicktree.php:10 quicktree.php:343
#, fuzzy
msgid "Save To New Tree"
msgstr "حفظ في شجرة جديدة"

#: quicktree.php:11 quicktree.php:344
#, fuzzy
msgid "Save To Branch"
msgstr "فرع الجذر"

#: quicktree.php:12
#, fuzzy
msgid "Clear All Graphs"
msgstr "مسح كافة الرسوم البيانية"

#: quicktree.php:60
#, fuzzy
msgid "Graph Added to QuickTree"
msgstr "تمت إضافة الرسم البياني إلى QuickTree"

#: quicktree.php:61
#, fuzzy, php-format
msgid "Graph %s added to QuickTree. Goto the QuickTree page to move all Graphs to a new or existing Tree."
msgstr "تمت إضافة الرسم البياني %s إلى QuickTree. انتقل إلى صفحة QuickTree لنقل جميع الرسوم البيانية إلى شجرة جديدة أو موجودة."

#: quicktree.php:64
#, fuzzy
msgid "Graph Not Added to QuickTree"
msgstr "الرسم البياني غير مضاف إلى QuickTree"

#: quicktree.php:65
#, fuzzy, php-format
msgid "Graph %s was NOT added to QuickTree as it's already there waiting to be placed on a Tree. Goto the QuickTree page to move all Graphs to a new or existing Tree."
msgstr "لم تتم إضافة الرسم البياني %s إلى QuickTree لأنه موجود بالفعل في انتظار وضعه على شجرة. انتقل إلى صفحة QuickTree لنقل جميع الرسوم البيانية إلى شجرة جديدة أو موجودة."

#: quicktree.php:69
#, fuzzy
msgid "Graph Not Specified. Not added to QuickTree"
msgstr "الرسم البياني غير محدد. لم يضاف إلى QuickTree"

#: quicktree.php:70
#, fuzzy
msgid "No Graph was added to QuickTree as no Graph was specified."
msgstr "لم تتم إضافة رسم بياني إلى QuickTree حيث لم يتم تحديد رسم بياني."

#: quicktree.php:88
#, fuzzy
msgid "Click 'Continue' to Add the following Tree."
msgstr "انقر فوق \"متابعة\" لمراقبة٪ s على هذه الأجهزة (الأجهزة)"

#: quicktree.php:94 quicktree.php:145
msgid "Tree Name"
msgstr "اسم الشجرة"

#: quicktree.php:97
#, fuzzy
msgid "New Tree"
msgstr "شجرة"

#: quicktree.php:103 quicktree.php:162
#, fuzzy
msgid "Branch Name"
msgstr "الفرع:٪ s"

#: quicktree.php:106 quicktree.php:165 quicktree.php:329 setup.php:129
#: setup.php:136 setup.php:143 setup.php:150 setup.php:157 setup.php:164
#, fuzzy
msgid "QuickTree"
msgstr "شجرة"

#: quicktree.php:114 quicktree.php:173
#, fuzzy
msgid "Add To Branch"
msgstr "إضافة فرع الجذر"

#: quicktree.php:114 quicktree.php:173
msgid "Cancel"
msgstr "إلغاء"

#: quicktree.php:114 quicktree.php:173
msgid "Continue"
msgstr "إستمرار"

#: quicktree.php:137
#, fuzzy
msgid "Click 'Continue' to Add the following Tree Branch."
msgstr "انقر فوق \"متابعة\" لمراقبة٪ s على هذه الأجهزة (الأجهزة)"

#: quicktree.php:139
#, fuzzy
msgid "Add to which Graph Tree?"
msgstr "إضافة إلى أي شجرة رسم بياني؟"

#: quicktree.php:279
#, fuzzy
msgid "QuickTree has Created Tree and/or Branch and added Graphs"
msgstr "قامت QuickTree بإنشاء شجرة و / أو فرع وإضافة رسوم بيانية"

#: quicktree.php:293
#, fuzzy
msgid "QuickTree has no Graphs Queued"
msgstr "لا توجد رسوم بيانية في قائمة انتظار QuickTree"

#: quicktree.php:332
#, fuzzy
msgid "Information/Directions"
msgstr "المعلومات / الاتجاهات"

#: quicktree.php:342
#, fuzzy
msgid "The Graphs below are Queue to be added to a Cacti Tree. You may keep them here for as long as you like, or you can perform one of the following actions"
msgstr "الرسوم البيانية أدناه هي قائمة انتظار ليتم إضافتها إلى شجرة الصبار. يمكنك الاحتفاظ بها هنا للمدة التي تريدها ، أو يمكنك تنفيذ أحد الإجراءات التالية"

#: quicktree.php:343
#, fuzzy
msgid "Save your selection to a new Graph Tree so you can keep them for later and work on something new."
msgstr "احفظ اختيارك في شجرة رسم جديدة حتى تتمكن من الاحتفاظ بها لوقت لاحق والعمل على شيء جديد."

#: quicktree.php:344
#, fuzzy
msgid "Save your selection as a branch to an existing tree so that they appear in a specific section of an existing tree."
msgstr "احفظ اختيارك كفرع لشجرة موجودة حتى تظهر في قسم معين من شجرة موجودة."

#: quicktree.php:345
#, fuzzy
msgid "Clear all graphs"
msgstr "مسح كافة الرسوم البيانية"

#: quicktree.php:345
#, fuzzy
msgid "Clear the Graphs on this page from the Graphs Queue so that you have a blank QuickTree ready for new selections"
msgstr "امسح الرسوم البيانية الموجودة في هذه الصفحة من قائمة انتظار الرسوم البيانية بحيث يكون لديك QuickTree فارغًا جاهزًا للتحديدات الجديدة"

#: quicktree.php:346
#, fuzzy
msgid "You can manage the individual graphs that appear here by clicking:"
msgstr "يمكنك إدارة الرسوم البيانية الفردية التي تظهر هنا من خلال النقر فوق:"

#: quicktree.php:347
msgid "Add"
msgstr "إضافة"

#: quicktree.php:347
#, fuzzy
msgid "Graph View Page"
msgstr "صفحة عرض الرسم البياني"

#: quicktree.php:347
#, fuzzy, php-format
msgid "This icon is next to a Graph on the %s tab."
msgstr "يقع هذا الرمز بجوار الرسم البياني في علامة التبويب %s."

#: quicktree.php:348
msgid "Delete"
msgstr "حذف"

#: quicktree.php:348
#, fuzzy
msgid "This icon next to the Graphs below to remove them from the QuickTree Queue."
msgstr "هذا الرمز بجوار الرسوم البيانية أدناه لإزالتها من قائمة انتظار QuickTree."

#: quicktree.php:349
msgid "Note:"
msgstr "التذکر:"

#: quicktree.php:350
#, fuzzy
msgid "Adding, removing or clearing on this page does not affect any other parts of Cacti (only Creating/Saving does)"
msgstr "لا تؤثر الإضافة أو الإزالة أو المسح في هذه الصفحة على أي أجزاء أخرى من Cacti (فقط الإنشاء / الحفظ)"

#: quicktree.php:367
msgid "Actions"
msgstr "أفعال"

#: quicktree.php:391
#, fuzzy
msgid "Remove This Graph From QuickTree"
msgstr "قم بإزالة هذا الرسم البياني من QuickTree"

#: quicktree.php:402
#, fuzzy
msgid "No Graphs Added Yet"
msgstr "لا توجد رسوم بيانية مضافة حتى الآن"

#: setup.php:29
#, fuzzy
msgid "Misc"
msgstr "متفرقات"

#: setup.php:33 setup.php:87
#, fuzzy
msgid "Quicktree"
msgstr "كويك تري"

#: setup.php:37
#, fuzzy
msgid "Page Style"
msgstr "نمط الصفحة"

#: setup.php:38
#, fuzzy
msgid "Where to display the QuickTree page"
msgstr "مكان عرض صفحة QuickTree"

#: setup.php:41
#, fuzzy
msgid "Tab"
msgstr "فتح في علامة تبويب جديدة"

#: setup.php:42
msgid "Console Menu"
msgstr "قائمة وحدة التحكم"

#: setup.php:43
#, fuzzy
msgid "Both Tab and Console Menu"
msgstr "كل من علامة التبويب وقائمة وحدة التحكم"

#: setup.php:99
#, fuzzy
msgid "Add this graph to QuickTree"
msgstr "أضف هذا الرسم البياني إلى QuickTree"

#: setup.php:108
#, fuzzy
msgid "QuickTree Tree Management"
msgstr "إدارة شجرة QuickTree"

#: setup.php:111
msgid "Management"
msgstr "الإدارة"

#: setup.php:111
#, fuzzy
msgid "QuickTree Trees"
msgstr "أشجار QuickTree"
Loading