├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── config.yml ├── dependabot.yml ├── label-commenter-config.yml ├── pull_request_template.md └── workflows │ ├── auto-tag-new-version.yml │ ├── close_stale_issue.yml │ ├── continuous-integration.yml │ ├── label-commenter.yml │ ├── locales-sync.yml │ ├── locales-update-source.yml │ └── release.yml ├── .gitignore ├── .php-cs-fixer.php ├── .phpcs.xml ├── .tx └── config ├── LICENSE ├── Readme.md ├── SECURITY.md ├── ajax └── extract_json.php ├── composer.json ├── composer.lock ├── dashboards └── readme.md ├── front ├── collections.php ├── config.form.php ├── profileright.form.php └── selfservice.php ├── hook.php ├── inc ├── apiclient.class.php ├── config.class.php ├── dashboard.class.php └── profileright.class.php ├── locales ├── cs_CZ.mo ├── cs_CZ.po ├── en_GB.mo ├── en_GB.po ├── en_US.mo ├── en_US.po ├── es_419.mo ├── es_419.po ├── es_AR.mo ├── es_AR.po ├── es_CO.mo ├── es_CO.po ├── es_EC.mo ├── es_EC.po ├── fi_FI.mo ├── fi_FI.po ├── fr_FR.mo ├── fr_FR.po ├── hr_HR.mo ├── hr_HR.po ├── it_IT.mo ├── it_IT.po ├── ko_KR.mo ├── ko_KR.po ├── metabase.pot ├── pt_BR.mo ├── pt_BR.po ├── pt_PT.mo ├── pt_PT.po ├── sk_SK.mo ├── sk_SK.po ├── tr_TR.mo ├── tr_TR.po ├── zh_CN.mo └── zh_CN.po ├── logo.png ├── metabase.css ├── metabase.js ├── metabase.xml ├── phpstan.neon ├── reports └── readme.md ├── screenshots ├── central.png ├── configuration.png ├── teclib_assets.png └── teclib_helpdesk.png ├── setup.php └── tools └── HEADER /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Create a report to help us improve metabase 3 | body: 4 | - type: markdown 5 | attributes: 6 | value: | 7 | 8 | Dear GLPI plugin user. 9 | 10 | **⚠️ Please never use standard issues to report security problems. See [security policy](https://github.com/pluginsGLPI/metabase/security/policy) for more details. ⚠️** 11 | 12 | BEFORE SUBMITTING YOUR ISSUE, please make sure to read and follow these steps: 13 | 14 | * We do not track feature requests nor enhancements here. Propose them on the [suggest dedicated site](https://suggest.glpi-project.org). 15 | * Keep this tracker in ENGLISH. If you want support in your language, the [community forum](https://forum.glpi-project.org) is the best place. 16 | * Always try to reproduce your issue at least on latest stable release. 17 | 18 | The GLPI team. 19 | - type: markdown 20 | attributes: 21 | value: | 22 | ## Professional Support 23 | 24 | We do not guarantee any processing / resolution time for community issues. 25 | 26 | If you need a quick fix or any guarantee, you should consider to buy a GLPI Network Subscription. 27 | 28 | More information here: https://glpi-project.org/subscriptions/ 29 | - type: checkboxes 30 | id: terms 31 | attributes: 32 | label: Code of Conduct 33 | description: By submitting this issue, you agree to follow hereinabove rules and [Contribution guide](https://github.com/glpi-project/glpi/blob/main/CONTRIBUTING.md) 34 | options: 35 | - label: I agree to follow this project's Code of Conduct 36 | validations: 37 | required: true 38 | - type: checkboxes 39 | attributes: 40 | label: Is there an existing issue for this? 41 | description: Please search to see if an issue already exists for the bug you encountered. 42 | options: 43 | - label: I have searched the existing issues 44 | validations: 45 | required: true 46 | - type: input 47 | id: glpi-version 48 | attributes: 49 | label: GLPI Version 50 | description: What version of our GLPI are you running? 51 | validations: 52 | required: true 53 | - type: input 54 | id: plugin-version 55 | attributes: 56 | label: Plugin version 57 | description: What version of `metabase` are you running? 58 | validations: 59 | required: true 60 | - type: textarea 61 | attributes: 62 | label: Bug description 63 | description: A concise description of the problem you are experiencing and what you expected to happen. 64 | validations: 65 | required: false 66 | - type: textarea 67 | id: logs 68 | attributes: 69 | label: Relevant log output 70 | description: | 71 | Please copy and paste any relevant log output. Find them in `*-error.log` files under `glpi/files/_log/`. 72 | 73 | Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. 74 | render: shell 75 | - type: input 76 | id: url 77 | attributes: 78 | label: Page URL 79 | description: If applicable, page URL where the bug happens. 80 | validations: 81 | required: false 82 | - type: textarea 83 | attributes: 84 | label: Steps To reproduce 85 | description: Steps to reproduce the behavior. 86 | placeholder: | 87 | 1. With this config... 88 | 2. Go to... 89 | 3. Scroll down to... 90 | 4. See error... 91 | validations: 92 | required: false 93 | - type: textarea 94 | attributes: 95 | label: Your GLPI setup information 96 | description: Please copy and paste information you will find in GLPI in `Setup > General` menu, `System` tab. 97 | validations: 98 | required: false 99 | - type: textarea 100 | attributes: 101 | label: Anything else? 102 | description: Add any other context about the problem here. 103 | validations: 104 | required: false 105 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: "GLPI professional support" 4 | url: "https://services.glpi-network.com" 5 | about: "Get professional support from the editor and a network of local partners." 6 | - name: "Find an official partner" 7 | url: "https://glpi-project.org/partners/" 8 | about: "Get support to deploy GLPI in a professional manner." 9 | - name: "GLPI Community Forum" 10 | url: "https://forum.glpi-project.org" 11 | about: "Ask questions and get help from the community." 12 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # Ensure GitHub Actions are used in their latest version 4 | - package-ecosystem: "github-actions" 5 | directory: "/" 6 | schedule: 7 | interval: "monthly" 8 | 9 | # Strategy for composer dependencies 10 | - package-ecosystem: "composer" 11 | directory: "/" 12 | schedule: 13 | interval: "monthly" 14 | allow: 15 | - dependency-type: "direct" 16 | open-pull-requests-limit: 100 17 | versioning-strategy: "increase" 18 | groups: 19 | dev-dependencies: 20 | dependency-type: "development" 21 | -------------------------------------------------------------------------------- /.github/label-commenter-config.yml: -------------------------------------------------------------------------------- 1 | labels: 2 | - name: "invalid" 3 | labeled: 4 | issue: 5 | body: | 6 | This issue has been closed because you did not provide the requested information. 7 | action: "close" 8 | - name: "support" 9 | labeled: 10 | issue: 11 | body: | 12 | This issue has been closed as we only track bugs here. 13 | 14 | You can get community support on [forums](https://forum.glpi-project.org/) or you can consider [taking a subscription](https://glpi-project.org/subscriptions/) to get professional support. 15 | You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly. 16 | action: close 17 | - name: "feature suggestion" 18 | labeled: 19 | issue: 20 | body: | 21 | This issue has been closed as we only track bugs here. 22 | 23 | You can open a topic to discuss with community about this enhancement on [suggestion website](https://glpi.userecho.com/). 24 | You can also [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly if you are willing to sponsor this feature. 25 | action: close 26 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Checklist before requesting a review 2 | 3 | *Please delete options that are not relevant.* 4 | 5 | - [ ] I have performed a self-review of my code. 6 | - [ ] I have added tests (when available) that prove my fix is effective or that my feature works. 7 | - [ ] This change requires a documentation update. 8 | 9 | ## Description 10 | 11 | - It fixes # (issue number, if applicable) 12 | - Here is a brief description of what this PR does 13 | 14 | ## Screenshots (if appropriate): 15 | 16 | -------------------------------------------------------------------------------- /.github/workflows/auto-tag-new-version.yml: -------------------------------------------------------------------------------- 1 | name: "Automatically tag new version" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "main" 7 | paths: 8 | - "setup.php" 9 | 10 | jobs: 11 | auto-tag-new-version: 12 | name: "Automatically tag new version" 13 | uses: "glpi-project/plugin-release-workflows/.github/workflows/auto-tag-new-version.yml@v1" 14 | secrets: 15 | github-token: "${{ secrets.AUTOTAG_TOKEN }}" 16 | -------------------------------------------------------------------------------- /.github/workflows/close_stale_issue.yml: -------------------------------------------------------------------------------- 1 | name: 'Close stale issues' 2 | on: 3 | schedule: 4 | - cron: '0 8 * * *' 5 | 6 | jobs: 7 | stale: 8 | if: github.repository == 'pluginsGLPI/metabase' 9 | permissions: 10 | issues: write # for actions/stale to close stale issues 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/stale@v9 14 | with: 15 | stale-issue-message: >- 16 | There has been no activity on this issue for some time and therefore it is considered stale 17 | and will be closed automatically in 10 days. 18 | 19 | 20 | If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, 21 | feel free to add a comment to revive this issue. 22 | 23 | If it is related to a new feature, please open a topic to discuss with community about this enhancement 24 | on [suggestion website](https://glpi.userecho.com/). 25 | 26 | 27 | You may also consider taking a [subscription](https://glpi-project.org/subscriptions/) to get professionnal 28 | support or [contact GLPI editor team](https://portal.glpi-network.com/contact-us) directly. 29 | days-before-issue-stale: 15 30 | days-before-pr-stale: -1 # PR will be marked as stale manually. 31 | days-before-close: 5 32 | exempt-issue-labels: "bug,enhancement,question,security" # Issues with "bug", "enhancement", "question" or "security" labels will not be marked as stale 33 | exempt-all-milestones: true # Do not check issues/PR with defined milestone. 34 | ascending: true # First check older issues/PR. 35 | operations-per-run: 750 # Max API calls per run. 36 | -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- 1 | name: "Continuous integration" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "main" 7 | tags: 8 | - "*" 9 | pull_request: 10 | schedule: 11 | - cron: "0 0 * * *" 12 | workflow_dispatch: 13 | 14 | concurrency: 15 | group: "${{ github.workflow }}-${{ github.ref }}" 16 | cancel-in-progress: true 17 | 18 | jobs: 19 | generate-ci-matrix: 20 | name: "Generate CI matrix" 21 | uses: "glpi-project/plugin-ci-workflows/.github/workflows/generate-ci-matrix.yml@v1" 22 | with: 23 | glpi-version: "10.0.x" 24 | ci: 25 | name: "GLPI ${{ matrix.glpi-version }} - php:${{ matrix.php-version }} - ${{ matrix.db-image }}" 26 | needs: "generate-ci-matrix" 27 | strategy: 28 | fail-fast: false 29 | matrix: ${{ fromJson(needs.generate-ci-matrix.outputs.matrix) }} 30 | uses: "glpi-project/plugin-ci-workflows/.github/workflows/continuous-integration.yml@v1" 31 | with: 32 | plugin-key: "metabase" 33 | glpi-version: "${{ matrix.glpi-version }}" 34 | php-version: "${{ matrix.php-version }}" 35 | db-image: "${{ matrix.db-image }}" 36 | -------------------------------------------------------------------------------- /.github/workflows/label-commenter.yml: -------------------------------------------------------------------------------- 1 | name: "Label commenter" 2 | 3 | on: 4 | issues: 5 | types: 6 | - "labeled" 7 | - "unlabeled" 8 | 9 | jobs: 10 | comment: 11 | permissions: 12 | contents: "read" 13 | issues: "write" 14 | runs-on: "ubuntu-latest" 15 | steps: 16 | - name: "Checkout" 17 | uses: "actions/checkout@v4" 18 | 19 | - name: "Label commenter" 20 | uses: "peaceiris/actions-label-commenter@v1" 21 | -------------------------------------------------------------------------------- /.github/workflows/locales-sync.yml: -------------------------------------------------------------------------------- 1 | name: "Synchronize locales" 2 | 3 | on: 4 | schedule: 5 | - cron: "0 0 * * 1-5" 6 | workflow_dispatch: 7 | 8 | jobs: 9 | sync-with-transifex: 10 | name: "Sync with transifex" 11 | uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1" 12 | secrets: 13 | github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}" 14 | transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" 15 | -------------------------------------------------------------------------------- /.github/workflows/locales-update-source.yml: -------------------------------------------------------------------------------- 1 | name: "Update locales sources" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "main" 7 | 8 | jobs: 9 | push-on-transifex: 10 | name: "Push locales sources" 11 | uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1" 12 | secrets: 13 | transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}" 14 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: "Publish release" 2 | 3 | on: 4 | push: 5 | tags: 6 | - '*' 7 | 8 | jobs: 9 | publish-release: 10 | permissions: 11 | contents: "write" 12 | name: "Publish release" 13 | uses: "glpi-project/plugin-release-workflows/.github/workflows/publish-release.yml@v1" 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | vendor/ 3 | .gh_token 4 | *.min.* 5 | 6 | -------------------------------------------------------------------------------- /.php-cs-fixer.php: -------------------------------------------------------------------------------- 1 | in(__DIR__) 8 | ->name('*.php'); 9 | 10 | $config = new Config(); 11 | 12 | $rules = [ 13 | '@PER-CS2.0' => true, 14 | 'trailing_comma_in_multiline' => ['elements' => ['arguments', 'array_destructuring', 'arrays']], // For PHP 7.4 compatibility 15 | ]; 16 | 17 | return $config 18 | ->setRules($rules) 19 | ->setFinder($finder) 20 | ->setUsingCache(false); 21 | -------------------------------------------------------------------------------- /.phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | . 4 | /.git/ 5 | ^vendor/ 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | 4 | [o:teclib:p:glpi-project-plugin-metabase:r:metabase-pot] 5 | file_filter = locales/.po 6 | source_file = locales/metabase.pot 7 | source_lang = en 8 | type = PO 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Plugin GLPI for metabase integration 2 | 3 | ![metabase illustration](https://www.metabase.com/images/dashboard.png) 4 | 5 | This plugin eases integration of GLPI with [Metabase](https://www.metabase.com/). 6 | It currently permits to: 7 | - [X] Connect to Metabase API. 8 | - [X] Push database configuration or use existing configured db in Metabase. 9 | - [X] Push GLPI foreign keys in Metabase datamodel 10 | - [X] Push GLPI enumeration (tickets impacts/urgency/priority/types) in Metabase datamodel 11 | - [X] Push questions, collections and dashboards (if exists). 12 | - [X] Integrate Metabase dashboards into GLPI (on Central). 13 | - [X] Profiles management (dashboards publication) 14 | - [X] import existing questions/dashboards/collection from metabase and save them as json 15 | - [ ] Check sync status 16 | 17 | [Teclib'](http://www.teclib-group.com/) provides with [GLPI Network](https://services.glpi-network.com/) distribution, additional services like support for installation, questions and dashboards conception. 18 | 19 | **[Contact Teclib'](https://services.glpi-network.com/)** for more information. 20 | 21 | --- 22 | 23 | Also, you can help us translate the plugin on [Transifex service](https://www.transifex.com/teclib/glpi-plugin-metabase/). 24 | 25 | ## Installation 26 | 27 | The plugin requires a existing instance of [Metabase](https://www.metabase.com/start/) even without database setup (but with an existing admin user). 28 | 29 | Install the glpi plugin as usual, and in plugin configuration (Setup > General, metabase tab), follow the process: 30 | 31 | - Setup host and credentials. 32 | - Choose (or create from glpi) a database. 33 | - Generate datemodel. 34 | - Push question and dashboards. 35 | 36 | ## Screenshots 37 | 38 | ### Teclib Questions and Dashboards 39 | 40 | ![Teclib Helpdesk dashboard](screenshots/teclib_helpdesk.png) 41 | ![Teclib Assets dashboard](screenshots/teclib_assets.png) 42 | 43 | ### Configuration in Setup > General 44 | 45 | ![metabase plugin configuration](screenshots/configuration.png) 46 | 47 | ### Display dashboards in central page 48 | 49 | ![central page](screenshots/central.png) 50 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | **⚠️ Please never use standard issues to report security problems; vulnerabilities are published once a fix release is available. ⚠️** 4 | 5 | ## Reporting a Vulnerability 6 | 7 | If you found a security issue, please contact us by: 8 | 9 | - [our huntr page](https://huntr.dev/repos/pluginsGLPI/metabase/) 10 | - a mail to \[glpi-security AT ow2.org\] 11 | 12 | You should provide us all details about the issue and the way to reproduce it. 13 | You may also provide a script that can be used to check the issue exists. 14 | 15 | Once the report will be handled, and if the issue is not yet fixed (or in progress) 16 | we'll add it to the GitHub security tab, and add you as observer. Meanwhile, 17 | you will reserve a CVE for the issue. 18 | 19 | Thank you for improving the security of GLPI and its plugins. 20 | 21 | ## Supported Versions 22 | 23 | We follow the same version support policy as GLPI. 24 | This means that we provide security patches to versions of the plugin that target a version of GLPI itself maintained from a security point of view. 25 | -------------------------------------------------------------------------------- /ajax/extract_json.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | include('../../../inc/includes.php'); 32 | 33 | header('Content-Type: text/html; charset=UTF-8'); 34 | Html::header_nocache(); 35 | Session::checkLoginUser(); 36 | 37 | if ( 38 | !isset($_REQUEST['id']) 39 | || !isset($_REQUEST['type']) 40 | ) { 41 | exit; 42 | } 43 | 44 | switch ($_REQUEST['type']) { 45 | case 'question': 46 | PluginMetabaseConfig::displayQuestionJson((int) $_REQUEST['id']); 47 | break; 48 | case 'dashboard': 49 | PluginMetabaseConfig::displayDashboardJson((int) $_REQUEST['id']); 50 | break; 51 | } 52 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "php": ">=7.4", 4 | "lcobucci/jwt": "^4.2" 5 | }, 6 | "require-dev": { 7 | "friendsofphp/php-cs-fixer": "^3.75", 8 | "glpi-project/tools": "^0.7.5", 9 | "php-parallel-lint/php-parallel-lint": "^1.4", 10 | "phpstan/extension-installer": "^1.4", 11 | "phpstan/phpstan": "^2.1", 12 | "phpstan/phpstan-deprecation-rules": "^2.0" 13 | }, 14 | "provide": { 15 | "guzzlehttp/guzzle": "*", 16 | "ext-sodium": "*" 17 | }, 18 | "config": { 19 | "optimize-autoloader": true, 20 | "platform": { 21 | "php": "7.4.0" 22 | }, 23 | "sort-packages": true, 24 | "allow-plugins": { 25 | "phpstan/extension-installer": true 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /dashboards/readme.md: -------------------------------------------------------------------------------- 1 | # Dashboards directory. 2 | 3 | Place here json files you want to push to metabase. 4 | This folder can contains sub folders, the plugin will parse json files recursively. 5 | 6 | For json file format, prepare your dashboards directly into metabase gui, and use extract process (from Setup > General menu) to store them here. 7 | -------------------------------------------------------------------------------- /front/collections.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | include('../../../inc/includes.php'); 32 | 33 | Html::header( 34 | __('Metabase collections', 'metabase'), 35 | $_SERVER['PHP_SELF'], 36 | 'config', 37 | 'config', 38 | 'collections', 39 | ); 40 | 41 | Session::checkRight('config', READ); 42 | 43 | echo '
'; 44 | echo '

' . __('Reports and dashboards specifications', 'metabase') . '

'; 45 | $metabaseConfig = new PluginMetabaseConfig(); 46 | $apiclient = new PluginMetabaseAPIClient(); 47 | if ($metabaseConfig::isValid() && $apiclient->getGlpiDatabase() && $apiclient->checkSession()) { 48 | $collections = $apiclient->getCollections(); 49 | if ( 50 | $collections !== false 51 | && count($collections) 52 | ) { 53 | if ( 54 | !isset($_SESSION['metabase']['tables']) 55 | || !isset($_SESSION['metabase']['fields']) 56 | || !count($_SESSION['metabase']['tables']) 57 | || !count($_SESSION['metabase']['fields']) 58 | ) { 59 | $current_config = PluginMetabaseConfig::getConfig(); 60 | PluginMetabaseConfig::loadTablesAndFields($current_config['glpi_db_id']); 61 | } 62 | 63 | echo '

' . __('Extract questions from metabase:', 'metabase') . '

'; 64 | echo "
    "; 65 | foreach ($collections as $collection) { 66 | $collection_cards = $apiclient->getCards($collection['id']); 67 | if ( 68 | $collection_cards !== false 69 | && count($collection_cards) 70 | ) { 71 | echo '
  • '; 72 | echo "
      "; 73 | foreach ($collection_cards as $card) { 74 | if ($card['query_type'] === 'native') { 75 | echo "
    • " . 78 | $card['name'] . 79 | '
    • '; 80 | } 81 | } 82 | echo '
    '; 83 | echo '
  • '; 84 | } 85 | } 86 | echo '
'; 87 | } 88 | 89 | $dashboards = $apiclient->getDashboards(); 90 | if ( 91 | $dashboards !== false 92 | && count($dashboards) 93 | ) { 94 | PluginMetabaseConfig::loadReports(); 95 | echo '

' . __('Extract dashboards from metabase:', 'metabase') . '

'; 96 | echo "'; 105 | } 106 | } else { 107 | echo '

' . __('Unable to access Metabase data. Please check plugin configuration.', 'metabase') . '

'; 108 | } 109 | 110 | echo '
'; 111 | 112 | Html::footer(); 113 | -------------------------------------------------------------------------------- /front/config.form.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | include('../../../inc/includes.php'); 32 | 33 | if (isset($_REQUEST['create_database'])) { 34 | Session::checkRight("config", CREATE); 35 | PluginMetabaseConfig::createGLPIDatabase(); 36 | Html::back(); 37 | } elseif (isset($_REQUEST['set_database'])) { 38 | Session::checkRight("config", UPDATE); 39 | PluginMetabaseConfig::setExistingDatabase((int) $_REQUEST['db_id']); 40 | Html::back(); 41 | } elseif (isset($_REQUEST['push_json'])) { 42 | Session::checkRight("config", UPDATE); 43 | PluginMetabaseConfig::pushReports(); 44 | PluginMetabaseConfig::pushDashboards(); 45 | Html::back(); 46 | } elseif (isset($_REQUEST['push_datamodel'])) { 47 | Session::checkRight("config", UPDATE); 48 | PluginMetabaseConfig::createDataModel((int) $_REQUEST['glpi_db_id']); 49 | Html::back(); 50 | } else { 51 | Session::checkRight("config", READ); 52 | /** @var array $CFG_GLPI */ 53 | Html::redirect($CFG_GLPI['root_doc'] . '/front/config.form.php?forcetab=PluginMetabaseConfig$1'); 54 | } 55 | -------------------------------------------------------------------------------- /front/profileright.form.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | include('../../../inc/includes.php'); 32 | 33 | if (isset($_REQUEST['update'])) { 34 | Session::checkRight('profile', UPDATE); 35 | 36 | if ( 37 | !array_key_exists('profiles_id', $_REQUEST) 38 | || empty($_REQUEST['profiles_id']) 39 | || !array_key_exists('dashboard', $_REQUEST) 40 | || !is_array($_REQUEST['dashboard']) 41 | ) { 42 | Session::addMessageAfterRedirect( 43 | __('Invalid request.', 'metabase'), 44 | false, 45 | ERROR, 46 | ); 47 | Html::back(); 48 | } 49 | 50 | $viewableDashboardsUuids = []; 51 | foreach ($_REQUEST['dashboard'] as $dashboardUuid => $rights) { 52 | PluginMetabaseProfileright::setDashboardRightsForProfile( 53 | $_REQUEST['profiles_id'], 54 | $dashboardUuid, 55 | $rights, 56 | ); 57 | 58 | if ($rights & READ) { 59 | $viewableDashboardsUuids[] = $dashboardUuid; 60 | } 61 | } 62 | 63 | $apiclient = new PluginMetabaseAPIClient(); 64 | $apiclient->enableDashboardsEmbeddedDisplay($viewableDashboardsUuids); 65 | } elseif (isset($_REQUEST['set_rights_to_all'])) { 66 | Session::checkRight('profile', UPDATE); 67 | 68 | if (!array_key_exists('profiles_id', $_REQUEST) || empty($_REQUEST['profiles_id'])) { 69 | Session::addMessageAfterRedirect( 70 | __('Invalid request.', 'metabase'), 71 | false, 72 | ERROR, 73 | ); 74 | Html::back(); 75 | } 76 | 77 | $apiclient = new PluginMetabaseAPIClient(); 78 | 79 | $viewableDashboardsUuids = []; 80 | foreach ($apiclient->getDashboards() as $dashboard) { 81 | PluginMetabaseProfileright::setDashboardRightsForProfile( 82 | $_REQUEST['profiles_id'], 83 | $dashboard['id'], 84 | $_REQUEST['set_rights_to_all'], 85 | ); 86 | 87 | $viewableDashboardsUuids[] = $dashboard['id']; 88 | } 89 | 90 | $apiclient->enableDashboardsEmbeddedDisplay($viewableDashboardsUuids); 91 | } 92 | 93 | Html::back(); 94 | -------------------------------------------------------------------------------- /front/selfservice.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | include('../../../inc/includes.php'); 32 | Session::checkLoginUser(); 33 | 34 | Html::helpHeader(__('Metbase'), $_SERVER['PHP_SELF']); 35 | $central = new Central(); 36 | PluginMetabaseDashboard::showForCentral($central, 0, true); 37 | Html::helpFooter(); 38 | -------------------------------------------------------------------------------- /hook.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | /** 32 | * Plugin install process 33 | * 34 | * @return boolean 35 | */ 36 | function plugin_metabase_install() 37 | { 38 | $version = plugin_version_metabase(); 39 | $migration = new Migration($version['version']); 40 | 41 | // Parse inc directory 42 | foreach (glob(dirname(__FILE__) . '/inc/*') as $filepath) { 43 | // Load *.class.php files and get the class name 44 | if (preg_match("/inc.(.+)\.class.php$/", $filepath, $matches)) { 45 | $classname = 'PluginMetabase' . ucfirst($matches[1]); 46 | include_once($filepath); 47 | // If the install method exists, load it 48 | if (method_exists($classname, 'install')) { 49 | $classname::install($migration); 50 | } 51 | } 52 | } 53 | $migration->executeMigration(); 54 | 55 | return true; 56 | } 57 | 58 | /** 59 | * Plugin uninstall process 60 | * 61 | * @return boolean 62 | */ 63 | function plugin_metabase_uninstall() 64 | { 65 | // Parse inc directory 66 | foreach (glob(dirname(__FILE__) . '/inc/*') as $filepath) { 67 | // Load *.class.php files and get the class name 68 | if (preg_match("/inc.(.+)\.class.php/", $filepath, $matches)) { 69 | $classname = 'PluginMetabase' . ucfirst($matches[1]); 70 | include_once($filepath); 71 | // If the install method exists, load it 72 | if (method_exists($classname, 'uninstall')) { 73 | $classname::uninstall(); 74 | } 75 | } 76 | } 77 | 78 | return true; 79 | } 80 | -------------------------------------------------------------------------------- /inc/dashboard.class.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | if (!defined('GLPI_ROOT')) { 32 | die("Sorry. You can't access directly to this file"); 33 | } 34 | 35 | class PluginMetabaseDashboard extends CommonDBTM 36 | { 37 | /** 38 | * {@inheritDoc} 39 | * @see CommonGLPI::getTypeName() 40 | */ 41 | public static function getTypeName($nb = 0) 42 | { 43 | return __('Metabase dashboard', 'metabase'); 44 | } 45 | 46 | /** 47 | * {@inheritDoc} 48 | * @see CommonGLPI::getTabNameForItem() 49 | */ 50 | public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) 51 | { 52 | switch ($item->getType()) { 53 | case 'Central': 54 | if (PluginMetabaseProfileright::canProfileViewDashboards($_SESSION['glpiactiveprofile']['id'])) { 55 | return self::createTabEntry(self::getTypeName()); 56 | } 57 | 58 | break; 59 | } 60 | 61 | return ''; 62 | } 63 | 64 | /** 65 | * {@inheritDoc} 66 | * @see CommonGLPI::displayTabContentForItem() 67 | */ 68 | public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) 69 | { 70 | switch (get_class($item)) { 71 | case Central::class: 72 | if (PluginMetabaseProfileright::canProfileViewDashboards($_SESSION['glpiactiveprofile']['id'])) { 73 | self::showForCentral($item, $withtemplate); 74 | } 75 | 76 | break; 77 | } 78 | 79 | return true; 80 | } 81 | 82 | /** 83 | * Display central tab. 84 | * 85 | * @param Central $item 86 | * @param number $withtemplate 87 | * 88 | * @return void 89 | */ 90 | public static function showForCentral(Central $item, $withtemplate = 0, $is_helpdesk = false) 91 | { 92 | $apiclient = new PluginMetabaseAPIClient(); 93 | 94 | $currentUuid = isset($_GET['uuid']) ? $_GET['uuid'] : null; 95 | 96 | $dashboards = $apiclient->getDashboards(); 97 | if (is_array($dashboards)) { 98 | $dashboards = array_filter( 99 | $dashboards, 100 | function ($dashboard) { 101 | $isEmbeddingEnabled = $dashboard['enable_embedding']; 102 | $canView = PluginMetabaseProfileright::canProfileViewDashboard( 103 | $_SESSION['glpiactiveprofile']['id'], 104 | $dashboard['id'], 105 | ); 106 | 107 | return $isEmbeddingEnabled && $canView; 108 | }, 109 | ); 110 | } 111 | 112 | if (empty($dashboards)) { 113 | return; 114 | } 115 | 116 | if (null === $currentUuid) { 117 | $firstDashboard = current($dashboards); 118 | $currentUuid = $firstDashboard['id']; 119 | } 120 | 121 | Dropdown::showFromArray( 122 | 'current_dashboard', 123 | array_combine(array_column($dashboards, 'id'), array_column($dashboards, 'name')), 124 | [ 125 | 'on_change' => ($is_helpdesk) ? 'location.href = location.origin+location.pathname+"?uuid="+$(this).val()' : 'reloadTab("uuid=" + $(this).val());', 126 | 'value' => $currentUuid, 127 | ], 128 | ); 129 | 130 | $config = PluginMetabaseConfig::getConfig(); 131 | 132 | $signer_config = Lcobucci\JWT\Configuration::forSymmetricSigner( 133 | new Lcobucci\JWT\Signer\Hmac\Sha256(), 134 | Lcobucci\JWT\Signer\Key\InMemory::plainText($config['embedded_token']), 135 | ); 136 | $token = $signer_config->builder() 137 | ->withClaim('resource', [ 138 | 'dashboard' => (int) $currentUuid, 139 | ]) 140 | ->withClaim('params', new stdClass()) 141 | ->getToken($signer_config->signer(), $signer_config->signingKey()); 142 | 143 | $url = rtrim($config['metabase_url'], '/'); 144 | echo ""; 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /inc/profileright.class.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | if (!defined('GLPI_ROOT')) { 32 | die("Sorry. You can't access directly to this file"); 33 | } 34 | 35 | class PluginMetabaseProfileright extends CommonDBTM 36 | { 37 | /** 38 | * Necessary right to edit the rights of this plugin. 39 | */ 40 | public static $rightname = 'profile'; 41 | 42 | /** 43 | * {@inheritDoc} 44 | * @see CommonGLPI::getTypeName() 45 | */ 46 | public static function getTypeName($nb = 0) 47 | { 48 | return __('Metabase', 'metabase'); 49 | } 50 | 51 | /** 52 | * {@inheritDoc} 53 | * @see CommonGLPI::getTabNameForItem() 54 | */ 55 | public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) 56 | { 57 | if (Profile::class === $item->getType() && Session::haveRight('profile', READ)) { 58 | return self::createTabEntry(self::getTypeName()); 59 | } 60 | 61 | return ''; 62 | } 63 | 64 | /** 65 | * {@inheritDoc} 66 | * @see CommonGLPI::displayTabContentForItem() 67 | */ 68 | public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) 69 | { 70 | if ($item instanceof self && Session::haveRight('profile', READ)) { 71 | $profileright = new self(); 72 | $profileright->showForm($item->fields['id']); 73 | } 74 | 75 | return true; 76 | } 77 | 78 | /** 79 | * Display profile rights form. 80 | * 81 | * @param integer $id Profile id 82 | * @param array $options 83 | * 84 | * @return bool 85 | */ 86 | public function showForm($id, $options = []) 87 | { 88 | if (!Session::haveRight('profile', READ)) { 89 | return false; 90 | } 91 | 92 | echo '
'; 93 | echo '
'; 94 | echo ''; 95 | 96 | echo ''; 97 | 98 | Plugin::doHook('pre_item_form', ['item' => $this, 'options' => &$options]); 99 | 100 | echo ''; 101 | 102 | echo ''; 103 | 104 | if (Session::haveRight('profile', UPDATE)) { 105 | echo ''; 106 | echo ''; 117 | echo ''; 118 | } 119 | 120 | $apiclient = new PluginMetabaseAPIClient(); 121 | $dashboards = $apiclient->getDashboards(); 122 | 123 | foreach ($dashboards as $dashboard) { 124 | echo ''; 125 | echo ''; 126 | echo ''; 137 | echo ''; 138 | } 139 | 140 | if (Session::haveRight('profile', UPDATE)) { 141 | echo ''; 142 | echo ''; 149 | echo ''; 150 | } 151 | 152 | echo '
' . self::getTypeName() . '
' . __('Rights management', 'metabase') . '
'; 107 | echo ''; 111 | echo '   '; 112 | echo ''; 116 | echo '
' . $dashboard['name'] . ''; 127 | Profile::dropdownRight( 128 | sprintf('dashboard[%d]', $dashboard['id']), 129 | [ 130 | 'value' => self::getProfileRightForDashboard($id, $dashboard['id']), 131 | 'nonone' => 0, 132 | 'noread' => 0, 133 | 'nowrite' => 1, 134 | ], 135 | ); 136 | echo '
'; 143 | echo Html::submit(_sx('button', 'Save'), [ 144 | 'name' => 'update', 145 | 'icon' => 'ti ti-device-floppy', 146 | 'class' => 'btn btn-primary', 147 | ]); 148 | echo '
'; 153 | echo '
'; 154 | 155 | Html::closeForm(); 156 | 157 | return true; 158 | } 159 | 160 | /** 161 | * Check if profile is able to view at least one dashboard. 162 | * 163 | * @param integer $profileId 164 | * 165 | * @return boolean 166 | */ 167 | public static function canProfileViewDashboards($profileId) 168 | { 169 | /** @var DBmysql $DB */ 170 | global $DB; 171 | 172 | $iterator = $DB->request( 173 | [ 174 | 'FROM' => self::getTable(), 175 | 'WHERE' => [ 176 | 'profiles_id' => $profileId, 177 | ], 178 | ], 179 | ); 180 | 181 | foreach ($iterator as $right) { 182 | if ($right['rights'] & READ) { 183 | return true; 184 | } 185 | } 186 | 187 | return false; 188 | } 189 | 190 | /** 191 | * Check if profile is able to view given dashboard. 192 | * 193 | * @param integer $profileId 194 | * @param integer $dashboardUuid 195 | * 196 | * @return integer 197 | */ 198 | public static function canProfileViewDashboard($profileId, $dashboardUuid) 199 | { 200 | return self::getProfileRightForDashboard($profileId, $dashboardUuid) & READ; 201 | } 202 | 203 | /** 204 | * Returns profile rights for given dashboard. 205 | * 206 | * @param integer $profileId 207 | * @param integer $dashboardUuid 208 | * 209 | * @return integer 210 | */ 211 | private static function getProfileRightForDashboard($profileId, $dashboardUuid) 212 | { 213 | $rightCriteria = [ 214 | 'profiles_id' => $profileId, 215 | 'dashboard_uuid' => $dashboardUuid, 216 | ]; 217 | 218 | $profileRight = new self(); 219 | if ($profileRight->getFromDBByCrit($rightCriteria)) { 220 | return $profileRight->fields['rights']; 221 | } 222 | 223 | return 0; 224 | } 225 | 226 | /** 227 | * Defines profile rights for dashboard. 228 | * 229 | * @param integer $profileId 230 | * @param integer $dashboardUuid 231 | * @param integer $rights 232 | * 233 | * @return void 234 | */ 235 | public static function setDashboardRightsForProfile($profileId, $dashboardUuid, $rights) 236 | { 237 | $profileRight = new self(); 238 | 239 | $rightsExists = $profileRight->getFromDBByCrit( 240 | [ 241 | 'profiles_id' => $profileId, 242 | 'dashboard_uuid' => $dashboardUuid, 243 | ], 244 | ); 245 | 246 | if ($rightsExists) { 247 | $profileRight->update( 248 | [ 249 | 'id' => $profileRight->fields['id'], 250 | 'rights' => $rights, 251 | ], 252 | ); 253 | } else { 254 | $profileRight->add( 255 | [ 256 | 'profiles_id' => $profileId, 257 | 'dashboard_uuid' => $dashboardUuid, 258 | 'rights' => $rights, 259 | ], 260 | ); 261 | } 262 | } 263 | 264 | /** 265 | * Install profiles database. 266 | * 267 | * @param Migration $migration 268 | * 269 | * @return void 270 | */ 271 | public static function install(Migration $migration) 272 | { 273 | /** @var DBmysql $DB */ 274 | global $DB; 275 | 276 | $default_charset = DBConnection::getDefaultCharset(); 277 | $default_collation = DBConnection::getDefaultCollation(); 278 | $default_key_sign = DBConnection::getDefaultPrimaryKeySignOption(); 279 | 280 | $table = self::getTable(); 281 | 282 | if (!$DB->tableExists($table)) { 283 | $migration->displayMessage("Installing $table"); 284 | 285 | $query = "CREATE TABLE IF NOT EXISTS `$table` ( 286 | `id` int {$default_key_sign} NOT NULL AUTO_INCREMENT, 287 | `profiles_id` int {$default_key_sign} NOT NULL, 288 | `dashboard_uuid` int NOT NULL, 289 | `rights` int NOT NULL, 290 | PRIMARY KEY (`id`), 291 | UNIQUE `profiles_id_dashboard_uuid` (`profiles_id`, `dashboard_uuid`) 292 | ) ENGINE=InnoDB DEFAULT CHARSET={$default_charset} COLLATE={$default_collation} ROW_FORMAT=DYNAMIC;"; 293 | $DB->doQuery($query) or die($DB->error()); 294 | } 295 | } 296 | 297 | /** 298 | * Uninstall profiles database. 299 | * 300 | * @return void 301 | */ 302 | public static function uninstall() 303 | { 304 | /** @var DBmysql $DB */ 305 | global $DB; 306 | 307 | $DB->doQuery('DROP TABLE IF EXISTS `' . self::getTable() . '`'); 308 | } 309 | } 310 | -------------------------------------------------------------------------------- /locales/cs_CZ.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/cs_CZ.mo -------------------------------------------------------------------------------- /locales/cs_CZ.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pavel Borecki , 2019 8 | # David Stepan , 2024 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: PACKAGE VERSION\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 16 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 17 | "Last-Translator: David Stepan , 2024\n" 18 | "Language-Team: Czech (Czech Republic) (https://app.transifex.com/teclib/teams/28042/cs_CZ/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: cs_CZ\n" 23 | "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" 24 | 25 | #: inc/config.class.php:259 26 | msgid "(Re)generate datamodel in Metabase" 27 | msgstr "(znovu)vytvořit datový model v Metabase" 28 | 29 | #: inc/config.class.php:186 30 | msgid "API status" 31 | msgstr "Stav API" 32 | 33 | #: inc/apiclient.class.php:67 34 | msgid "API: get GLPI database" 35 | msgstr "API: získat GLPI databázi" 36 | 37 | #: inc/apiclient.class.php:61 38 | msgid "API: get current user" 39 | msgstr "API: získat stávajícího uživatele" 40 | 41 | #: inc/apiclient.class.php:65 42 | msgid "API: get databases" 43 | msgstr "API: získat databáze" 44 | 45 | #: inc/apiclient.class.php:63 46 | msgid "API: get users" 47 | msgstr "API: získat uživatele" 48 | 49 | #: inc/apiclient.class.php:59 50 | msgid "API: login" 51 | msgstr "API: přihlášení" 52 | 53 | #: inc/config.class.php:218 54 | msgid "Action(s)" 55 | msgstr "Akce" 56 | 57 | #: inc/profileright.class.php:109 58 | msgid "Allow access to all" 59 | msgstr "Umožnit přístup ke všemu" 60 | 61 | #: inc/config.class.php:230 62 | msgid "Create GLPI database in local Metabase" 63 | msgstr "Vytvořit databázi GLPI v místní instanci Metabase" 64 | 65 | #: inc/profileright.class.php:114 66 | msgid "Disallow access to all" 67 | msgstr "Znemožnit přístup ke všemu" 68 | 69 | #: inc/apiclient.class.php:694 70 | #, php-format 71 | msgid "Enabling embedded display fails for dashboard %s." 72 | msgstr "Zapnutí vestavěného zobrazení se pro nástěnku %s nezdařilo." 73 | 74 | #: front/collections.php:95 75 | msgid "Extract dashboards from metabase:" 76 | msgstr "Vytáhnout přehledy z metabase:" 77 | 78 | #: front/collections.php:63 79 | msgid "Extract questions from metabase:" 80 | msgstr "Vytáhnout dotazy z metabase:" 81 | 82 | #: front/profileright.form.php:43 front/profileright.form.php:70 83 | msgid "Invalid request." 84 | msgstr "Neplatný požadavek." 85 | 86 | #: inc/config.class.php:205 87 | msgid "Last Error" 88 | msgstr "Poslední chyba" 89 | 90 | #: inc/profileright.class.php:48 inc/config.class.php:39 91 | msgid "Metabase" 92 | msgstr "Metabase" 93 | 94 | #: front/collections.php:34 95 | msgid "Metabase collections" 96 | msgstr "Metabase sbírky" 97 | 98 | #: inc/dashboard.class.php:43 99 | msgid "Metabase dashboard" 100 | msgstr "Nástěnka Metabase" 101 | 102 | #: inc/config.class.php:142 103 | msgid "Metabase embedded token (to display dashboard in GLPI)" 104 | msgstr "Metabase zapouzdřený token (pro zobrazení nástěnky v GLPI)" 105 | 106 | #: inc/config.class.php:95 107 | msgid "Metabase host" 108 | msgstr "Stroj s metabase" 109 | 110 | #: inc/config.class.php:103 111 | msgid "Metabase port" 112 | msgstr "Port metabase" 113 | 114 | #: inc/config.class.php:152 115 | msgid "Metabase url" 116 | msgstr "URL adresa metabase" 117 | 118 | #: inc/apiclient.class.php:186 119 | msgid "No auto-generated GLPI database found" 120 | msgstr "Nenalezena žádná automaticky vytvořená GLPI databáze" 121 | 122 | #: inc/config.class.php:238 123 | msgid "OR set an existing database: " 124 | msgstr "NEBO nastavit existující databázi:" 125 | 126 | #: inc/config.class.php:228 127 | msgid "Previously stored database is not existing anymore." 128 | msgstr "Dříve uložená databáze už neexistuje." 129 | 130 | #: inc/config.class.php:252 131 | msgid "Push reports and dashboards in Metabase" 132 | msgstr "Odeslat výkazy a přehledy do Metabase" 133 | 134 | #: inc/apiclient.class.php:883 135 | msgid "" 136 | "Query to metabase failed because operation timed out. Maybe you should " 137 | "increase the timeout value in plugin configuration" 138 | msgstr "" 139 | "Dotaz do metabase se nezdařil kvůli překročení časového limitu. Možná byste " 140 | "měli tento limit zvýšit (v nastavení zásuvného modulu)" 141 | 142 | #: front/collections.php:44 143 | msgid "Reports and dashboards specifications" 144 | msgstr "Specifikace výkazů a přehledů" 145 | 146 | #: inc/profileright.class.php:100 147 | msgid "Rights management" 148 | msgstr "Správa oprávnění" 149 | 150 | #: inc/config.class.php:242 151 | msgid "Set database" 152 | msgstr "Nastavit databázi" 153 | 154 | #: inc/config.class.php:267 155 | msgid "Show reports and dashboards specifications" 156 | msgstr "Zobrazit specifikace výkazů a přehledů" 157 | 158 | #: inc/config.class.php:163 159 | msgid "Timeout for sending data (in seconds)" 160 | msgstr "Časový limit pro odeslání dat (v milisekundách)" 161 | 162 | #: front/collections.php:107 163 | msgid "Unable to access Metabase data. Please check plugin configuration." 164 | msgstr "" 165 | "Nedaří se přistupovat k datům Metabase. Zkontrolujte nastavení zásuvného " 166 | "modulu." 167 | 168 | #: inc/config.class.php:153 169 | msgid "" 170 | "You may want to have a different dashboard url (with https for example) than" 171 | " the host (used to push the data) " 172 | msgstr "" 173 | "Nejspíš chcete jinou URL adresu pro nástěnku (například s https) než stroj " 174 | "(slouží k odesílání dat)." 175 | 176 | #: inc/config.class.php:112 177 | msgid "username (metabase admin)" 178 | msgstr "uživatelské jméno (správce metabase)" 179 | -------------------------------------------------------------------------------- /locales/en_GB.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/en_GB.mo -------------------------------------------------------------------------------- /locales/en_GB.po: -------------------------------------------------------------------------------- 1 | # English translations for PACKAGE package. 2 | # Copyright (C) 2025 THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # Automatically generated, 2025. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: PACKAGE VERSION\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-06 01:03+0000\n" 11 | "PO-Revision-Date: 2025-01-06 01:03+0000\n" 12 | "Last-Translator: Automatically generated\n" 13 | "Language-Team: none\n" 14 | "Language: en_GB\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=ASCII\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | 20 | #: inc/config.class.php:259 21 | msgid "(Re)generate datamodel in Metabase" 22 | msgstr "(Re)generate datamodel in Metabase" 23 | 24 | #: inc/config.class.php:186 25 | msgid "API status" 26 | msgstr "API status" 27 | 28 | #: inc/apiclient.class.php:67 29 | msgid "API: get GLPI database" 30 | msgstr "API: get GLPI database" 31 | 32 | #: inc/apiclient.class.php:61 33 | msgid "API: get current user" 34 | msgstr "API: get current user" 35 | 36 | #: inc/apiclient.class.php:65 37 | msgid "API: get databases" 38 | msgstr "API: get databases" 39 | 40 | #: inc/apiclient.class.php:63 41 | msgid "API: get users" 42 | msgstr "API: get users" 43 | 44 | #: inc/apiclient.class.php:59 45 | msgid "API: login" 46 | msgstr "API: login" 47 | 48 | #: inc/config.class.php:218 49 | msgid "Action(s)" 50 | msgstr "Action(s)" 51 | 52 | #: inc/profileright.class.php:109 53 | msgid "Allow access to all" 54 | msgstr "Allow access to all" 55 | 56 | #: inc/config.class.php:230 57 | msgid "Create GLPI database in local Metabase" 58 | msgstr "Create GLPI database in local Metabase" 59 | 60 | #: inc/profileright.class.php:114 61 | msgid "Disallow access to all" 62 | msgstr "Disallow access to all" 63 | 64 | #: inc/apiclient.class.php:694 65 | #, php-format 66 | msgid "Enabling embedded display fails for dashboard %s." 67 | msgstr "Enabling embedded display fails for dashboard %s." 68 | 69 | #: front/collections.php:95 70 | msgid "Extract dashboards from metabase:" 71 | msgstr "Extract dashboards from metabase:" 72 | 73 | #: front/collections.php:63 74 | msgid "Extract questions from metabase:" 75 | msgstr "Extract questions from metabase:" 76 | 77 | #: front/profileright.form.php:43 front/profileright.form.php:70 78 | msgid "Invalid request." 79 | msgstr "Invalid request." 80 | 81 | #: inc/config.class.php:205 82 | msgid "Last Error" 83 | msgstr "Last Error" 84 | 85 | #: inc/profileright.class.php:48 inc/config.class.php:39 86 | msgid "Metabase" 87 | msgstr "Metabase" 88 | 89 | #: front/collections.php:34 90 | msgid "Metabase collections" 91 | msgstr "Metabase collections" 92 | 93 | #: inc/dashboard.class.php:43 94 | msgid "Metabase dashboard" 95 | msgstr "Metabase dashboard" 96 | 97 | #: inc/config.class.php:142 98 | msgid "Metabase embedded token (to display dashboard in GLPI)" 99 | msgstr "Metabase embedded token (to display dashboard in GLPI)" 100 | 101 | #: inc/config.class.php:95 102 | msgid "Metabase host" 103 | msgstr "Metabase host" 104 | 105 | #: inc/config.class.php:103 106 | msgid "Metabase port" 107 | msgstr "Metabase port" 108 | 109 | #: inc/config.class.php:152 110 | msgid "Metabase url" 111 | msgstr "Metabase url" 112 | 113 | #: inc/apiclient.class.php:186 114 | msgid "No auto-generated GLPI database found" 115 | msgstr "No auto-generated GLPI database found" 116 | 117 | #: inc/config.class.php:238 118 | msgid "OR set an existing database: " 119 | msgstr "OR set an existing database: " 120 | 121 | #: inc/config.class.php:228 122 | msgid "Previously stored database is not existing anymore." 123 | msgstr "Previously stored database is not existing anymore." 124 | 125 | #: inc/config.class.php:252 126 | msgid "Push reports and dashboards in Metabase" 127 | msgstr "Push reports and dashboards in Metabase" 128 | 129 | #: inc/apiclient.class.php:883 130 | msgid "" 131 | "Query to metabase failed because operation timed out. Maybe you should " 132 | "increase the timeout value in plugin configuration" 133 | msgstr "" 134 | "Query to metabase failed because operation timed out. Maybe you should " 135 | "increase the timeout value in plugin configuration" 136 | 137 | #: front/collections.php:44 138 | msgid "Reports and dashboards specifications" 139 | msgstr "Reports and dashboards specifications" 140 | 141 | #: inc/profileright.class.php:100 142 | msgid "Rights management" 143 | msgstr "Rights management" 144 | 145 | #: inc/config.class.php:242 146 | msgid "Set database" 147 | msgstr "Set database" 148 | 149 | #: inc/config.class.php:267 150 | msgid "Show reports and dashboards specifications" 151 | msgstr "Show reports and dashboards specifications" 152 | 153 | #: inc/config.class.php:163 154 | msgid "Timeout for sending data (in seconds)" 155 | msgstr "Timeout for sending data (in seconds)" 156 | 157 | #: front/collections.php:107 158 | msgid "Unable to access Metabase data. Please check plugin configuration." 159 | msgstr "Unable to access Metabase data. Please check plugin configuration." 160 | 161 | #: inc/config.class.php:153 162 | msgid "" 163 | "You may want to have a different dashboard url (with https for example) than " 164 | "the host (used to push the data) " 165 | msgstr "" 166 | "You may want to have a different dashboard url (with https for example) than " 167 | "the host (used to push the data) " 168 | 169 | #: inc/config.class.php:112 170 | msgid "username (metabase admin)" 171 | msgstr "username (metabase admin)" 172 | -------------------------------------------------------------------------------- /locales/en_US.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/en_US.mo -------------------------------------------------------------------------------- /locales/en_US.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Shawn Long , 2019 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Shawn Long , 2019\n" 17 | "Language-Team: English (United States) (https://app.transifex.com/teclib/teams/28042/en_US/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: en_US\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re)generate data model in Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "API Status" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: get GLPI database" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: get current user" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: get databases" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: get users" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: login" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Action(s)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Allow access to all" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Create GLPI database in local Metabase" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Disallow access to all" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "Enabling embedded display fails for dashboard %s." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Extract dashboards from metabase:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Extract questions from metabase:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "Invalid Request." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Last Error" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "Metabase collections" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Metabase dashboard" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Metabase embedded token (to display dashboard in GLPI)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Metabase host" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Metabase port" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "Metabase URL" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "No auto-generated GLPI database found" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "OR set an existing database: " 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "Previously stored database is not existing anymore." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Push reports and dashboards in Metabase" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "Query to metabase failed because operation timed out. Maybe you should " 139 | "increase the timeout value in plugin configuration" 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "Reports and dashboard specifications" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "Rights management" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Set database" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "Show report and dashboard specifications" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Timeout for sending data (in seconds)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "Unable to access Metabase data. Please check plugin configuration." 164 | 165 | #: inc/config.class.php:153 166 | msgid "" 167 | "You may want to have a different dashboard url (with https for example) than" 168 | " the host (used to push the data) " 169 | msgstr "" 170 | "You may want to have a different dashboard URL (with https for example) than" 171 | " the host (used to push the data) " 172 | 173 | #: inc/config.class.php:112 174 | msgid "username (metabase admin)" 175 | msgstr "username (metabase admin)" 176 | -------------------------------------------------------------------------------- /locales/es_419.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/es_419.mo -------------------------------------------------------------------------------- /locales/es_419.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Roberto Flores , 2018 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Roberto Flores , 2018\n" 17 | "Language-Team: Spanish (Latin America) (https://app.transifex.com/teclib/teams/28042/es_419/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: es_419\n" 22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re) generar modelo de datos en Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Estado de la API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: Obtener la base de datos GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obtener usuario actual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: Obtener base de datos" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obtener usuarios" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: Inicio de sesión" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Acción (es)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir acceso a todos" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Crear base de datos GLPI en Metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "No permitir el acceso a todos" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "" 72 | "La habilitación de la visualización incrustada falla para el tablero %s. " 73 | 74 | #: front/collections.php:95 75 | msgid "Extract dashboards from metabase:" 76 | msgstr "Extrae los paneles de la metabase:" 77 | 78 | #: front/collections.php:63 79 | msgid "Extract questions from metabase:" 80 | msgstr "Extrae preguntas de la metabase:" 81 | 82 | #: front/profileright.form.php:43 front/profileright.form.php:70 83 | msgid "Invalid request." 84 | msgstr "Solicitud no válida." 85 | 86 | #: inc/config.class.php:205 87 | msgid "Last Error" 88 | msgstr "Último error" 89 | 90 | #: inc/profileright.class.php:48 inc/config.class.php:39 91 | msgid "Metabase" 92 | msgstr "Metabase" 93 | 94 | #: front/collections.php:34 95 | msgid "Metabase collections" 96 | msgstr "" 97 | 98 | #: inc/dashboard.class.php:43 99 | msgid "Metabase dashboard" 100 | msgstr "Tablero de la metabase" 101 | 102 | #: inc/config.class.php:142 103 | msgid "Metabase embedded token (to display dashboard in GLPI)" 104 | msgstr "Token incrustado en la metabase (para mostrar el tablero en GLPI)" 105 | 106 | #: inc/config.class.php:95 107 | msgid "Metabase host" 108 | msgstr "Host de metabase" 109 | 110 | #: inc/config.class.php:103 111 | msgid "Metabase port" 112 | msgstr "Puerto de metabase" 113 | 114 | #: inc/config.class.php:152 115 | msgid "Metabase url" 116 | msgstr "URL de metabase" 117 | 118 | #: inc/apiclient.class.php:186 119 | msgid "No auto-generated GLPI database found" 120 | msgstr "No se encontró una base de datos GLPI autogenerada" 121 | 122 | #: inc/config.class.php:238 123 | msgid "OR set an existing database: " 124 | msgstr "O establecer una base de datos existente:" 125 | 126 | #: inc/config.class.php:228 127 | msgid "Previously stored database is not existing anymore." 128 | msgstr "La base de datos previamente almacenada ya no existe." 129 | 130 | #: inc/config.class.php:252 131 | msgid "Push reports and dashboards in Metabase" 132 | msgstr "Enviar informes y paneles en Metabase" 133 | 134 | #: inc/apiclient.class.php:883 135 | msgid "" 136 | "Query to metabase failed because operation timed out. Maybe you should " 137 | "increase the timeout value in plugin configuration" 138 | msgstr "" 139 | "La consulta a metabase falló debido a que se agotó el tiempo de espera de la" 140 | " operación. Tal vez debería aumentar el valor de tiempo de espera en la " 141 | "configuración del complemento." 142 | 143 | #: front/collections.php:44 144 | msgid "Reports and dashboards specifications" 145 | msgstr "" 146 | 147 | #: inc/profileright.class.php:100 148 | msgid "Rights management" 149 | msgstr "Gestión de Derechos" 150 | 151 | #: inc/config.class.php:242 152 | msgid "Set database" 153 | msgstr "Establecer base de datos" 154 | 155 | #: inc/config.class.php:267 156 | msgid "Show reports and dashboards specifications" 157 | msgstr "" 158 | 159 | #: inc/config.class.php:163 160 | msgid "Timeout for sending data (in seconds)" 161 | msgstr "Tiempo de espera para enviar datos (en segundos)" 162 | 163 | #: front/collections.php:107 164 | msgid "Unable to access Metabase data. Please check plugin configuration." 165 | msgstr "" 166 | 167 | #: inc/config.class.php:153 168 | msgid "" 169 | "You may want to have a different dashboard url (with https for example) than" 170 | " the host (used to push the data) " 171 | msgstr "" 172 | "Es posible que desee tener una URL de tablero diferente (con https por " 173 | "ejemplo) que el host (utilizado para enviar los datos)" 174 | 175 | #: inc/config.class.php:112 176 | msgid "username (metabase admin)" 177 | msgstr "Nombre de usuario (administrador de metabase)" 178 | -------------------------------------------------------------------------------- /locales/es_AR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/es_AR.mo -------------------------------------------------------------------------------- /locales/es_AR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Emiliano Cagliari , 2018 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Emiliano Cagliari , 2018\n" 17 | "Language-Team: Spanish (Argentina) (https://app.transifex.com/teclib/teams/28042/es_AR/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: es_AR\n" 22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re) generar modelo de datos en Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Estado de API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: obtener base de datos GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obtener usuario actual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: obtener bases de datos" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obtener usuarios" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: inicio de sesión" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Accion(es)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir acceso a todos" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Crear base de datos GLPI en Metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "No permitir el acceso a todos" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "" 72 | "La habilitación de la visualización incrustada falla para el tablero %s." 73 | 74 | #: front/collections.php:95 75 | msgid "Extract dashboards from metabase:" 76 | msgstr "Extrae los paneles de la metabase:" 77 | 78 | #: front/collections.php:63 79 | msgid "Extract questions from metabase:" 80 | msgstr "Extrae preguntas de la metabase:" 81 | 82 | #: front/profileright.form.php:43 front/profileright.form.php:70 83 | msgid "Invalid request." 84 | msgstr "Solicitud No Valida" 85 | 86 | #: inc/config.class.php:205 87 | msgid "Last Error" 88 | msgstr "Ultimo Error" 89 | 90 | #: inc/profileright.class.php:48 inc/config.class.php:39 91 | msgid "Metabase" 92 | msgstr "Metabase" 93 | 94 | #: front/collections.php:34 95 | msgid "Metabase collections" 96 | msgstr "" 97 | 98 | #: inc/dashboard.class.php:43 99 | msgid "Metabase dashboard" 100 | msgstr "Panel Metabase" 101 | 102 | #: inc/config.class.php:142 103 | msgid "Metabase embedded token (to display dashboard in GLPI)" 104 | msgstr "Token incrustado en la metabase (para mostrar el tablero en GLPI)" 105 | 106 | #: inc/config.class.php:95 107 | msgid "Metabase host" 108 | msgstr "Host de Metabase" 109 | 110 | #: inc/config.class.php:103 111 | msgid "Metabase port" 112 | msgstr "Puerto de Metabase" 113 | 114 | #: inc/config.class.php:152 115 | msgid "Metabase url" 116 | msgstr "Metabase url" 117 | 118 | #: inc/apiclient.class.php:186 119 | msgid "No auto-generated GLPI database found" 120 | msgstr "No se encontró una base de datos GLPI autogenerada" 121 | 122 | #: inc/config.class.php:238 123 | msgid "OR set an existing database: " 124 | msgstr "O establecer una base de datos existente:" 125 | 126 | #: inc/config.class.php:228 127 | msgid "Previously stored database is not existing anymore." 128 | msgstr "La base de datos previamente almacenada ya no existe." 129 | 130 | #: inc/config.class.php:252 131 | msgid "Push reports and dashboards in Metabase" 132 | msgstr "Enviar informes y paneles en Metabase" 133 | 134 | #: inc/apiclient.class.php:883 135 | msgid "" 136 | "Query to metabase failed because operation timed out. Maybe you should " 137 | "increase the timeout value in plugin configuration" 138 | msgstr "" 139 | "La consulta a metabase falló debido a que se agotó el tiempo de espera de la" 140 | " operación. Tal vez debería aumentar el valor de tiempo de espera en la " 141 | "configuración del complemento" 142 | 143 | #: front/collections.php:44 144 | msgid "Reports and dashboards specifications" 145 | msgstr "" 146 | 147 | #: inc/profileright.class.php:100 148 | msgid "Rights management" 149 | msgstr "Gestión de Permisos" 150 | 151 | #: inc/config.class.php:242 152 | msgid "Set database" 153 | msgstr "Establecer base de datos" 154 | 155 | #: inc/config.class.php:267 156 | msgid "Show reports and dashboards specifications" 157 | msgstr "" 158 | 159 | #: inc/config.class.php:163 160 | msgid "Timeout for sending data (in seconds)" 161 | msgstr "Tiempo de espera para enviar datos (en segundos)" 162 | 163 | #: front/collections.php:107 164 | msgid "Unable to access Metabase data. Please check plugin configuration." 165 | msgstr "" 166 | 167 | #: inc/config.class.php:153 168 | msgid "" 169 | "You may want to have a different dashboard url (with https for example) than" 170 | " the host (used to push the data) " 171 | msgstr "" 172 | "Es posible que desee tener una URL de tablero diferente (con https por " 173 | "ejemplo) que el host (utilizado para enviar los datos)" 174 | 175 | #: inc/config.class.php:112 176 | msgid "username (metabase admin)" 177 | msgstr "nombre de usuario (administrador de la metabase)" 178 | -------------------------------------------------------------------------------- /locales/es_CO.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/es_CO.mo -------------------------------------------------------------------------------- /locales/es_CO.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Haider López , 2019 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Haider López , 2019\n" 17 | "Language-Team: Spanish (Colombia) (https://app.transifex.com/teclib/teams/28042/es_CO/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: es_CO\n" 22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re)generar modelo de datos en metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Estatus API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: obtener base de datos GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obtener usuario actual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: obtener bases de datos" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obtener usuarios" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: acceso" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Acción(es)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir acceso a todo" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Crear una base de datos GLPI en la metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Deshabilitar acceso a todo" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "" 72 | "La habilitación de la visualización integrada falla para el panel de control" 73 | " %s." 74 | 75 | #: front/collections.php:95 76 | msgid "Extract dashboards from metabase:" 77 | msgstr "Extraer tableros desde la metabase:" 78 | 79 | #: front/collections.php:63 80 | msgid "Extract questions from metabase:" 81 | msgstr "Extraer preguntas desde la metabase:" 82 | 83 | #: front/profileright.form.php:43 front/profileright.form.php:70 84 | msgid "Invalid request." 85 | msgstr "Respuesta invalida." 86 | 87 | #: inc/config.class.php:205 88 | msgid "Last Error" 89 | msgstr "Último error" 90 | 91 | #: inc/profileright.class.php:48 inc/config.class.php:39 92 | msgid "Metabase" 93 | msgstr "Metabase" 94 | 95 | #: front/collections.php:34 96 | msgid "Metabase collections" 97 | msgstr "Colecciones de metabase" 98 | 99 | #: inc/dashboard.class.php:43 100 | msgid "Metabase dashboard" 101 | msgstr "Tablero de metabase" 102 | 103 | #: inc/config.class.php:142 104 | msgid "Metabase embedded token (to display dashboard in GLPI)" 105 | msgstr "Token incrustado de la metabase (para mostrar el panel en GLPI)" 106 | 107 | #: inc/config.class.php:95 108 | msgid "Metabase host" 109 | msgstr "Host de metabase" 110 | 111 | #: inc/config.class.php:103 112 | msgid "Metabase port" 113 | msgstr "Puerto de metabase" 114 | 115 | #: inc/config.class.php:152 116 | msgid "Metabase url" 117 | msgstr "Url de metabase" 118 | 119 | #: inc/apiclient.class.php:186 120 | msgid "No auto-generated GLPI database found" 121 | msgstr "No se encontró una base de datos GLPI generada automáticamente" 122 | 123 | #: inc/config.class.php:238 124 | msgid "OR set an existing database: " 125 | msgstr "O establezca una base de datos existente:" 126 | 127 | #: inc/config.class.php:228 128 | msgid "Previously stored database is not existing anymore." 129 | msgstr "La base de datos previamente almacenada ya no existe." 130 | 131 | #: inc/config.class.php:252 132 | msgid "Push reports and dashboards in Metabase" 133 | msgstr "Notificaciones de reportes y tableros en la metabase" 134 | 135 | #: inc/apiclient.class.php:883 136 | msgid "" 137 | "Query to metabase failed because operation timed out. Maybe you should " 138 | "increase the timeout value in plugin configuration" 139 | msgstr "" 140 | "La consulta a la metabase falló porque la operación se agotó. Tal vez " 141 | "debería aumentar el valor de tiempo de espera en la configuración del " 142 | "complemento" 143 | 144 | #: front/collections.php:44 145 | msgid "Reports and dashboards specifications" 146 | msgstr "Especificaciones de informes y cuadros de mando" 147 | 148 | #: inc/profileright.class.php:100 149 | msgid "Rights management" 150 | msgstr "Gestión de permisos" 151 | 152 | #: inc/config.class.php:242 153 | msgid "Set database" 154 | msgstr "Establecer base de datos" 155 | 156 | #: inc/config.class.php:267 157 | msgid "Show reports and dashboards specifications" 158 | msgstr "Mostrar informes y especificaciones de paneles" 159 | 160 | #: inc/config.class.php:163 161 | msgid "Timeout for sending data (in seconds)" 162 | msgstr "Tiempo fuera para enviar datos (en segundos)" 163 | 164 | #: front/collections.php:107 165 | msgid "Unable to access Metabase data. Please check plugin configuration." 166 | msgstr "" 167 | "No se puede acceder a los datos de la metabase. Verifique la configuración " 168 | "del complemento." 169 | 170 | #: inc/config.class.php:153 171 | msgid "" 172 | "You may want to have a different dashboard url (with https for example) than" 173 | " the host (used to push the data) " 174 | msgstr "" 175 | "Es posible que desee tener una url con un panel diferente (con https por " 176 | "ejemplo) que el host (usado para enviar datos)" 177 | 178 | #: inc/config.class.php:112 179 | msgid "username (metabase admin)" 180 | msgstr "nombre de usuario (admin de metabase)" 181 | -------------------------------------------------------------------------------- /locales/es_EC.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/es_EC.mo -------------------------------------------------------------------------------- /locales/es_EC.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Soporte Infraestructura Standby, 2023 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Soporte Infraestructura Standby, 2023\n" 17 | "Language-Team: Spanish (Ecuador) (https://app.transifex.com/teclib/teams/28042/es_EC/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: es_EC\n" 22 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re)generar modelo de datos en Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Estado de la API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: obtener base de datos GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obtener el usuario actual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: obtener bases de datos" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obtener usuarios" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: inicio de sesión" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Acción(es)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir el acceso a todos" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Crear base de datos GLPI en Metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "No permitir el acceso a todos" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "" 72 | "La activación de la visualización incrustada falla para el cuadro de mandos " 73 | "%s." 74 | 75 | #: front/collections.php:95 76 | msgid "Extract dashboards from metabase:" 77 | msgstr "Extraer cuadros de mando de la metabase:" 78 | 79 | #: front/collections.php:63 80 | msgid "Extract questions from metabase:" 81 | msgstr "Extraer preguntas de la metabase:" 82 | 83 | #: front/profileright.form.php:43 front/profileright.form.php:70 84 | msgid "Invalid request." 85 | msgstr "Solicitud no válida." 86 | 87 | #: inc/config.class.php:205 88 | msgid "Last Error" 89 | msgstr "Último error" 90 | 91 | #: inc/profileright.class.php:48 inc/config.class.php:39 92 | msgid "Metabase" 93 | msgstr "Metabase" 94 | 95 | #: front/collections.php:34 96 | msgid "Metabase collections" 97 | msgstr "Colecciones de metabases" 98 | 99 | #: inc/dashboard.class.php:43 100 | msgid "Metabase dashboard" 101 | msgstr "Cuadro de mando de la metabase" 102 | 103 | #: inc/config.class.php:142 104 | msgid "Metabase embedded token (to display dashboard in GLPI)" 105 | msgstr "Token incrustado de metabase (para mostrar el panel en GLPI)" 106 | 107 | #: inc/config.class.php:95 108 | msgid "Metabase host" 109 | msgstr "Host de la metabase" 110 | 111 | #: inc/config.class.php:103 112 | msgid "Metabase port" 113 | msgstr "Puerto de la metabase" 114 | 115 | #: inc/config.class.php:152 116 | msgid "Metabase url" 117 | msgstr "URL de la metabase" 118 | 119 | #: inc/apiclient.class.php:186 120 | msgid "No auto-generated GLPI database found" 121 | msgstr "No se ha encontrado ninguna base de datos GLPI autogenerada" 122 | 123 | #: inc/config.class.php:238 124 | msgid "OR set an existing database: " 125 | msgstr "O establecer una base de datos existente: " 126 | 127 | #: inc/config.class.php:228 128 | msgid "Previously stored database is not existing anymore." 129 | msgstr "La base de datos almacenada anteriormente ya no existe." 130 | 131 | #: inc/config.class.php:252 132 | msgid "Push reports and dashboards in Metabase" 133 | msgstr "Insertar informes y paneles en la metabase" 134 | 135 | #: inc/apiclient.class.php:883 136 | msgid "" 137 | "Query to metabase failed because operation timed out. Maybe you should " 138 | "increase the timeout value in plugin configuration" 139 | msgstr "" 140 | "Error en la consulta a la metabase porque se agotó el tiempo de espera de la" 141 | " operación. Tal vez debería aumentar el valor de tiempo de espera en la " 142 | "configuración del complemento" 143 | 144 | #: front/collections.php:44 145 | msgid "Reports and dashboards specifications" 146 | msgstr "Especificaciones de informes y cuadros de mando" 147 | 148 | #: inc/profileright.class.php:100 149 | msgid "Rights management" 150 | msgstr "Gestión de derechos" 151 | 152 | #: inc/config.class.php:242 153 | msgid "Set database" 154 | msgstr "Establecer base de datos" 155 | 156 | #: inc/config.class.php:267 157 | msgid "Show reports and dashboards specifications" 158 | msgstr "Mostrar especificaciones de informes y paneles" 159 | 160 | #: inc/config.class.php:163 161 | msgid "Timeout for sending data (in seconds)" 162 | msgstr "Tiempo de espera para enviar datos (en segundos)" 163 | 164 | #: front/collections.php:107 165 | msgid "Unable to access Metabase data. Please check plugin configuration." 166 | msgstr "" 167 | "No se puede acceder a los datos de la metabase. Por favor, compruebe la " 168 | "configuración del plugin." 169 | 170 | #: inc/config.class.php:153 171 | msgid "" 172 | "You may want to have a different dashboard url (with https for example) than" 173 | " the host (used to push the data) " 174 | msgstr "" 175 | "Es posible que desee tener una URL de panel diferente (con https, por " 176 | "ejemplo) que el host (utilizado para insertar los datos) " 177 | 178 | #: inc/config.class.php:112 179 | msgid "username (metabase admin)" 180 | msgstr "nombre de usuario (administrador de la metabase)" 181 | -------------------------------------------------------------------------------- /locales/fi_FI.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/fi_FI.mo -------------------------------------------------------------------------------- /locales/fi_FI.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Markku Vepsä, 2018 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Markku Vepsä, 2018\n" 17 | "Language-Team: Finnish (Finland) (https://app.transifex.com/teclib/teams/28042/fi_FI/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: fi_FI\n" 22 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "Luo uudelleen Metabse-tietomalli " 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "API:n tila" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: nouda GLPI tietoanta" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: nouda nykyinen käyttäjä" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: nouda tietokannat" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: nouda käyttäjät" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: kirjautuminen" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Toimet" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Salli pääsy kaikille" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Luo GLPI-tietokanta paikalliseen Metabase:iin" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Estää pääsyn kaikille" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "" 72 | "Sulautetun näytön käyttöönottaminen epäonnistui hallintapaneelissa %s." 73 | 74 | #: front/collections.php:95 75 | msgid "Extract dashboards from metabase:" 76 | msgstr "Poimi hallintapaneeleita Metabasesta:" 77 | 78 | #: front/collections.php:63 79 | msgid "Extract questions from metabase:" 80 | msgstr "Poimi kysymyksiä Metabasesta:" 81 | 82 | #: front/profileright.form.php:43 front/profileright.form.php:70 83 | msgid "Invalid request." 84 | msgstr "Virheellinen pyyntö." 85 | 86 | #: inc/config.class.php:205 87 | msgid "Last Error" 88 | msgstr "Viimeisin virhe" 89 | 90 | #: inc/profileright.class.php:48 inc/config.class.php:39 91 | msgid "Metabase" 92 | msgstr "Metabase" 93 | 94 | #: front/collections.php:34 95 | msgid "Metabase collections" 96 | msgstr "" 97 | 98 | #: inc/dashboard.class.php:43 99 | msgid "Metabase dashboard" 100 | msgstr "Metabase-hallintapaneeli" 101 | 102 | #: inc/config.class.php:142 103 | msgid "Metabase embedded token (to display dashboard in GLPI)" 104 | msgstr "" 105 | "Metabasen upotettu tunniste 'token' (nähdäksesi hallintapaneelin GLPI:ssä)" 106 | 107 | #: inc/config.class.php:95 108 | msgid "Metabase host" 109 | msgstr "Metabase-isäntä" 110 | 111 | #: inc/config.class.php:103 112 | msgid "Metabase port" 113 | msgstr "Metabase-portti" 114 | 115 | #: inc/config.class.php:152 116 | msgid "Metabase url" 117 | msgstr "Metabase url" 118 | 119 | #: inc/apiclient.class.php:186 120 | msgid "No auto-generated GLPI database found" 121 | msgstr "Automaattisesti generoitua GLPI-tietokantaa ei löytynyt" 122 | 123 | #: inc/config.class.php:238 124 | msgid "OR set an existing database: " 125 | msgstr "TAI aseta olemassa olevaan tietokantaan:" 126 | 127 | #: inc/config.class.php:228 128 | msgid "Previously stored database is not existing anymore." 129 | msgstr "Aiemmin tallennettua tietokantaa ei ole enää olemassa." 130 | 131 | #: inc/config.class.php:252 132 | msgid "Push reports and dashboards in Metabase" 133 | msgstr "\"Työnnä\" raportit ja hallintapaneelit Metabase:iin" 134 | 135 | #: inc/apiclient.class.php:883 136 | msgid "" 137 | "Query to metabase failed because operation timed out. Maybe you should " 138 | "increase the timeout value in plugin configuration" 139 | msgstr "" 140 | "Metabase-kysely epäonnistui, koska toiminto aikakatkaistiin. Voit " 141 | "tarvittaessa lisätä aikakatkaisun arvoa liitännäisen asetuksissa." 142 | 143 | #: front/collections.php:44 144 | msgid "Reports and dashboards specifications" 145 | msgstr "" 146 | 147 | #: inc/profileright.class.php:100 148 | msgid "Rights management" 149 | msgstr "Käyttöoikeuksien hallinta" 150 | 151 | #: inc/config.class.php:242 152 | msgid "Set database" 153 | msgstr "Aseta tietokanta" 154 | 155 | #: inc/config.class.php:267 156 | msgid "Show reports and dashboards specifications" 157 | msgstr "" 158 | 159 | #: inc/config.class.php:163 160 | msgid "Timeout for sending data (in seconds)" 161 | msgstr "Tiedon lähettämisen katkaisuaika (sekunneissa)" 162 | 163 | #: front/collections.php:107 164 | msgid "Unable to access Metabase data. Please check plugin configuration." 165 | msgstr "" 166 | 167 | #: inc/config.class.php:153 168 | msgid "" 169 | "You may want to have a different dashboard url (with https for example) than" 170 | " the host (used to push the data) " 171 | msgstr "" 172 | "Voit halutessasi käyttää eri dashboard-URL-osoitetta (esim. https) kuin " 173 | "isäntä (push data)" 174 | 175 | #: inc/config.class.php:112 176 | msgid "username (metabase admin)" 177 | msgstr "käyttäjätunnus (metabase ylläpitäjä)" 178 | -------------------------------------------------------------------------------- /locales/fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/fr_FR.mo -------------------------------------------------------------------------------- /locales/fr_FR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # alexandre delaunay , 2018 8 | # Stanislas , 2021 9 | # Cédric Anne, 2023 10 | # 11 | #, fuzzy 12 | msgid "" 13 | msgstr "" 14 | "Project-Id-Version: PACKAGE VERSION\n" 15 | "Report-Msgid-Bugs-To: \n" 16 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 17 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 18 | "Last-Translator: Cédric Anne, 2023\n" 19 | "Language-Team: French (France) (https://app.transifex.com/teclib/teams/28042/fr_FR/)\n" 20 | "MIME-Version: 1.0\n" 21 | "Content-Type: text/plain; charset=UTF-8\n" 22 | "Content-Transfer-Encoding: 8bit\n" 23 | "Language: fr_FR\n" 24 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 25 | 26 | #: inc/config.class.php:259 27 | msgid "(Re)generate datamodel in Metabase" 28 | msgstr "(Re)générer le modèle de données dans Metabase" 29 | 30 | #: inc/config.class.php:186 31 | msgid "API status" 32 | msgstr "Status de l'API" 33 | 34 | #: inc/apiclient.class.php:67 35 | msgid "API: get GLPI database" 36 | msgstr "API : obtention de la base de données de GLPI" 37 | 38 | #: inc/apiclient.class.php:61 39 | msgid "API: get current user" 40 | msgstr "API : obtention du l'utilisateur courant" 41 | 42 | #: inc/apiclient.class.php:65 43 | msgid "API: get databases" 44 | msgstr "API : obtention des bases de données" 45 | 46 | #: inc/apiclient.class.php:63 47 | msgid "API: get users" 48 | msgstr "API : obtention des utilisateurs" 49 | 50 | #: inc/apiclient.class.php:59 51 | msgid "API: login" 52 | msgstr "API : connexion" 53 | 54 | #: inc/config.class.php:218 55 | msgid "Action(s)" 56 | msgstr "Action(s)" 57 | 58 | #: inc/profileright.class.php:109 59 | msgid "Allow access to all" 60 | msgstr "Autoriser l’accès pour tous" 61 | 62 | #: inc/config.class.php:230 63 | msgid "Create GLPI database in local Metabase" 64 | msgstr "Créer la base de données de GLPI dans la Metabase local" 65 | 66 | #: inc/profileright.class.php:114 67 | msgid "Disallow access to all" 68 | msgstr "Interdire l'accès à tous" 69 | 70 | #: inc/apiclient.class.php:694 71 | #, php-format 72 | msgid "Enabling embedded display fails for dashboard %s." 73 | msgstr "" 74 | "L'activation de l'intégration de l'affichage a échoué pour le tableau de " 75 | "bord %s." 76 | 77 | #: front/collections.php:95 78 | msgid "Extract dashboards from metabase:" 79 | msgstr "Extraire les tableaux de bords depuis Metabase : " 80 | 81 | #: front/collections.php:63 82 | msgid "Extract questions from metabase:" 83 | msgstr "Extraire les question depuis Metabase : " 84 | 85 | #: front/profileright.form.php:43 front/profileright.form.php:70 86 | msgid "Invalid request." 87 | msgstr "Requête invalide" 88 | 89 | #: inc/config.class.php:205 90 | msgid "Last Error" 91 | msgstr "Dernière erreur" 92 | 93 | #: inc/profileright.class.php:48 inc/config.class.php:39 94 | msgid "Metabase" 95 | msgstr "Metabase" 96 | 97 | #: front/collections.php:34 98 | msgid "Metabase collections" 99 | msgstr "Collections Metabase" 100 | 101 | #: inc/dashboard.class.php:43 102 | msgid "Metabase dashboard" 103 | msgstr "Tableau de bord Metabase" 104 | 105 | #: inc/config.class.php:142 106 | msgid "Metabase embedded token (to display dashboard in GLPI)" 107 | msgstr "" 108 | "Jeton d'intégration Metabase (pour afficher les tableaux de bord dans GLPI)" 109 | 110 | #: inc/config.class.php:95 111 | msgid "Metabase host" 112 | msgstr "Hôte Metabase" 113 | 114 | #: inc/config.class.php:103 115 | msgid "Metabase port" 116 | msgstr "Port de Metabase" 117 | 118 | #: inc/config.class.php:152 119 | msgid "Metabase url" 120 | msgstr "Url de Metabase" 121 | 122 | #: inc/apiclient.class.php:186 123 | msgid "No auto-generated GLPI database found" 124 | msgstr "Aucune base de données GLPI auto-générée trouvée" 125 | 126 | #: inc/config.class.php:238 127 | msgid "OR set an existing database: " 128 | msgstr "Ou définir une base de données existante :" 129 | 130 | #: inc/config.class.php:228 131 | msgid "Previously stored database is not existing anymore." 132 | msgstr "La base de données précédemment stockée n'existe plus." 133 | 134 | #: inc/config.class.php:252 135 | msgid "Push reports and dashboards in Metabase" 136 | msgstr "Pousser les rapports et tableaux de bords dans Metabase" 137 | 138 | #: inc/apiclient.class.php:883 139 | msgid "" 140 | "Query to metabase failed because operation timed out. Maybe you should " 141 | "increase the timeout value in plugin configuration" 142 | msgstr "" 143 | "La requête vers Metabase a échoué parce l'opération a expirée. Peut être " 144 | "pouvez vous augmenter la temps d'expiration dans la configuration du plugin" 145 | 146 | #: front/collections.php:44 147 | msgid "Reports and dashboards specifications" 148 | msgstr "Spécifications des rapports et tableaux de bord" 149 | 150 | #: inc/profileright.class.php:100 151 | msgid "Rights management" 152 | msgstr "Gestion des droits" 153 | 154 | #: inc/config.class.php:242 155 | msgid "Set database" 156 | msgstr "Définir la base de donnée" 157 | 158 | #: inc/config.class.php:267 159 | msgid "Show reports and dashboards specifications" 160 | msgstr "Voir les spécifications des rapports et tableaux de bord" 161 | 162 | #: inc/config.class.php:163 163 | msgid "Timeout for sending data (in seconds)" 164 | msgstr "Délai d'expiration pour envoyer les données (en secondes)" 165 | 166 | #: front/collections.php:107 167 | msgid "Unable to access Metabase data. Please check plugin configuration." 168 | msgstr "" 169 | "Impossible d'accéder aux données de Metabase. Veuillez vérifier la " 170 | "configuration du plugin." 171 | 172 | #: inc/config.class.php:153 173 | msgid "" 174 | "You may want to have a different dashboard url (with https for example) than" 175 | " the host (used to push the data) " 176 | msgstr "" 177 | "Vous voudrez peut être avoir une url différente pour les tableaux de bord " 178 | "(avec https par exemple) que celle de l'hôte (utilisée pour pousser les " 179 | "données)" 180 | 181 | #: inc/config.class.php:112 182 | msgid "username (metabase admin)" 183 | msgstr "Nom d'utilisateur (administrateur Metabase)" 184 | -------------------------------------------------------------------------------- /locales/hr_HR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/hr_HR.mo -------------------------------------------------------------------------------- /locales/hr_HR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Milo Ivir , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Milo Ivir , 2020\n" 17 | "Language-Team: Croatian (Croatia) (https://app.transifex.com/teclib/teams/28042/hr_HR/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: hr_HR\n" 22 | "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Ponovo) generiraj datotečni model u Metabaseu" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Stanje API-a" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: dobij GLPI bazu podataka" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: dobij trenutačnog korisnika" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: dobij baze podataka" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: dobij korisnike" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: prijava" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Radnje" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Dozvoli pristup svima" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Stvori GLPI bazu podataka u lokalnoj Metabase bazi podataka" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Zabrani pristup svima" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "Aktiviranje ugrađenog prikaza ne uspijeva za nadzornu ploču %s." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Izvuci pregledne ploče iz Metabase baze podataka:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Izvuci pitanja iz Metabase baze podataka:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "Nevaljan zahtjev." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Zadnja greška" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "Metabase zbirke" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Metabase nadzorna ploča" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Ugrađeni Metabase token (za prikaz nadzorne ploče u GLPI-u)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Metabase računalo" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Metabase priključak" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "Metabase url" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "Nema automatki generirane GLPI baze podataka" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "ILI postavi jednu postojeću bazu podataka: " 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "Prethodno spremljena baza podataka više ne postoji." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Šalji izvještaje i pregledne ploče u Metabase" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "Upit za metabase nije uspio jer je operaciji isteklo vrijeme. Možda moraš " 139 | "povećati istek vremena u konfiguraciji dodataka" 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "Specifikacije za izvještaje i pregledne ploče" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "Upravljanje pravima" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Postavi bazu podataka" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "Prikaži specifikacije za izvještaje i nadzorne ploče" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Istek vremena za slanje podataka (u sekundama)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "Nemoguć pristup Metabase podacima. Provjeri konfiguraciju dodatka." 164 | 165 | #: inc/config.class.php:153 166 | msgid "" 167 | "You may want to have a different dashboard url (with https for example) than" 168 | " the host (used to push the data) " 169 | msgstr "" 170 | "Možda želiš imati drugačiji url nadzorne ploče (npr. https) od računala " 171 | "(koristi se za slanje podataka) " 172 | 173 | #: inc/config.class.php:112 174 | msgid "username (metabase admin)" 175 | msgstr "korisničko ime (metabase administrator)" 176 | -------------------------------------------------------------------------------- /locales/it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/it_IT.mo -------------------------------------------------------------------------------- /locales/it_IT.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Pierfrancesco Passerini , 2018 8 | # Emanuele Trotta , 2020 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: PACKAGE VERSION\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 16 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 17 | "Last-Translator: Emanuele Trotta , 2020\n" 18 | "Language-Team: Italian (Italy) (https://app.transifex.com/teclib/teams/28042/it_IT/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: it_IT\n" 23 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 24 | 25 | #: inc/config.class.php:259 26 | msgid "(Re)generate datamodel in Metabase" 27 | msgstr "(Ri)genera datamodel in Metabase" 28 | 29 | #: inc/config.class.php:186 30 | msgid "API status" 31 | msgstr "Stato API" 32 | 33 | #: inc/apiclient.class.php:67 34 | msgid "API: get GLPI database" 35 | msgstr "" 36 | 37 | #: inc/apiclient.class.php:61 38 | msgid "API: get current user" 39 | msgstr "" 40 | 41 | #: inc/apiclient.class.php:65 42 | msgid "API: get databases" 43 | msgstr "" 44 | 45 | #: inc/apiclient.class.php:63 46 | msgid "API: get users" 47 | msgstr "" 48 | 49 | #: inc/apiclient.class.php:59 50 | msgid "API: login" 51 | msgstr "API: login" 52 | 53 | #: inc/config.class.php:218 54 | msgid "Action(s)" 55 | msgstr "Azione(i)" 56 | 57 | #: inc/profileright.class.php:109 58 | msgid "Allow access to all" 59 | msgstr "Consenti l'accesso a tutti" 60 | 61 | #: inc/config.class.php:230 62 | msgid "Create GLPI database in local Metabase" 63 | msgstr "Crea database GLPI in metabase locale" 64 | 65 | #: inc/profileright.class.php:114 66 | msgid "Disallow access to all" 67 | msgstr "Non consentire l'accesso a tutti" 68 | 69 | #: inc/apiclient.class.php:694 70 | #, php-format 71 | msgid "Enabling embedded display fails for dashboard %s." 72 | msgstr "" 73 | "L'abilitazione della visualizzazione incorporata fallisce per la dashboard " 74 | "%s." 75 | 76 | #: front/collections.php:95 77 | msgid "Extract dashboards from metabase:" 78 | msgstr " Estrai dashboard da metabase:" 79 | 80 | #: front/collections.php:63 81 | msgid "Extract questions from metabase:" 82 | msgstr "Estrai domande da metabase" 83 | 84 | #: front/profileright.form.php:43 front/profileright.form.php:70 85 | msgid "Invalid request." 86 | msgstr "Richiesta non valida." 87 | 88 | #: inc/config.class.php:205 89 | msgid "Last Error" 90 | msgstr "Ultimo Errore" 91 | 92 | #: inc/profileright.class.php:48 inc/config.class.php:39 93 | msgid "Metabase" 94 | msgstr "Metabase" 95 | 96 | #: front/collections.php:34 97 | msgid "Metabase collections" 98 | msgstr "Raccolte di metabase" 99 | 100 | #: inc/dashboard.class.php:43 101 | msgid "Metabase dashboard" 102 | msgstr "dashboard di metabase" 103 | 104 | #: inc/config.class.php:142 105 | msgid "Metabase embedded token (to display dashboard in GLPI)" 106 | msgstr "Token di embed di metabase (per visualizzare la dashboard in GLPI)" 107 | 108 | #: inc/config.class.php:95 109 | msgid "Metabase host" 110 | msgstr "Metabase host" 111 | 112 | #: inc/config.class.php:103 113 | msgid "Metabase port" 114 | msgstr "Metabase porta" 115 | 116 | #: inc/config.class.php:152 117 | msgid "Metabase url" 118 | msgstr "Metabase url" 119 | 120 | #: inc/apiclient.class.php:186 121 | msgid "No auto-generated GLPI database found" 122 | msgstr "Nessun database GLPI generato automaticamente trovato" 123 | 124 | #: inc/config.class.php:238 125 | msgid "OR set an existing database: " 126 | msgstr "OPPURE imposta un database esistente:" 127 | 128 | #: inc/config.class.php:228 129 | msgid "Previously stored database is not existing anymore." 130 | msgstr "Il database memorizzato in precedenza non esiste più." 131 | 132 | #: inc/config.class.php:252 133 | msgid "Push reports and dashboards in Metabase" 134 | msgstr "Esegui il push di report e dashboard in Metabase" 135 | 136 | #: inc/apiclient.class.php:883 137 | msgid "" 138 | "Query to metabase failed because operation timed out. Maybe you should " 139 | "increase the timeout value in plugin configuration" 140 | msgstr "" 141 | "Query su metabase non riuscita perché l'operazione è scaduta. Forse dovresti" 142 | " aumentare il valore di timeout nella configurazione del plugin" 143 | 144 | #: front/collections.php:44 145 | msgid "Reports and dashboards specifications" 146 | msgstr "Specifiche di report e dashboard" 147 | 148 | #: inc/profileright.class.php:100 149 | msgid "Rights management" 150 | msgstr "Gestione dei diritti" 151 | 152 | #: inc/config.class.php:242 153 | msgid "Set database" 154 | msgstr "Imposta database" 155 | 156 | #: inc/config.class.php:267 157 | msgid "Show reports and dashboards specifications" 158 | msgstr "Mostra le specifiche di report e dashboard" 159 | 160 | #: inc/config.class.php:163 161 | msgid "Timeout for sending data (in seconds)" 162 | msgstr "Timeout per l'invio dei dati (in secondi)" 163 | 164 | #: front/collections.php:107 165 | msgid "Unable to access Metabase data. Please check plugin configuration." 166 | msgstr "" 167 | "Impossibile accedere ai dati di Metabase. Controlla la configurazione del " 168 | "plugin." 169 | 170 | #: inc/config.class.php:153 171 | msgid "" 172 | "You may want to have a different dashboard url (with https for example) than" 173 | " the host (used to push the data) " 174 | msgstr "" 175 | "Potresti voler avere un URL della dashboard diverso (con https ad esempio) " 176 | "rispetto all'host (utilizzato per inviare i dati)" 177 | 178 | #: inc/config.class.php:112 179 | msgid "username (metabase admin)" 180 | msgstr "nome utente (metabase admin)" 181 | -------------------------------------------------------------------------------- /locales/ko_KR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/ko_KR.mo -------------------------------------------------------------------------------- /locales/ko_KR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # 조성현 (jaymz9634) , 2020 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: 조성현 (jaymz9634) , 2020\n" 17 | "Language-Team: Korean (Korea) (https://app.transifex.com/teclib/teams/28042/ko_KR/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: ko_KR\n" 22 | "Plural-Forms: nplurals=1; plural=0;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "메타베이스에 데이터모델 (재)생성" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "API 상태" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: GLPI 데이터베이스 얻기" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: 현재 사용자 얻기" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: 데이터베이스 얻기" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: 사용자 얻기" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: 로그인" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "동작(들)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "전체에 접근 허용" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "로컬 메타베이스에 GLPI 데이터베이스 생성" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "전체에 접근 금지" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "대시보드 %s에 대한 삽입된 보기 활성화에 실패했습니다." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "메타베이스에서 대시보드 추출:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "메타베이스에서 질문 추출:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "잘못된 요청." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "최근 오류" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "메타베이스" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "메타베이스 집합" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "메타베이스 대시보드" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "메타베이스에 (GLPI의 대시보드에 표시 할) 삽입된 토큰" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "메타베이스 호스트" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "메타베이스 포트" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "메타베이스 url" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "자동-생성된 GLPI  데이터베이스가 없습니다" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "또는 기존 데이터베이스에 설정:" 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "이전에 저장된 데이터베이스가 더 이상 존재하지 않습니다." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "메타베이스의 보고서 및 대시보드 푸쉬" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "동작 시간 만료로 메타베이스에 대한 질의가 실패했습니다. 아마 플러그인 구성에서 시간 만료 값을 증가해야 할 겁니다." 138 | 139 | #: front/collections.php:44 140 | msgid "Reports and dashboards specifications" 141 | msgstr "보고서와 대시보드 명세서" 142 | 143 | #: inc/profileright.class.php:100 144 | msgid "Rights management" 145 | msgstr "권한 관리" 146 | 147 | #: inc/config.class.php:242 148 | msgid "Set database" 149 | msgstr "데이터베이스 설정" 150 | 151 | #: inc/config.class.php:267 152 | msgid "Show reports and dashboards specifications" 153 | msgstr "보고서와 대시보드 명세서 보기" 154 | 155 | #: inc/config.class.php:163 156 | msgid "Timeout for sending data (in seconds)" 157 | msgstr "데이터 전송 시간 만료 (초 단위)" 158 | 159 | #: front/collections.php:107 160 | msgid "Unable to access Metabase data. Please check plugin configuration." 161 | msgstr "메타베이스 자료에 접근할 수 없습니다. 플러그인 구성을 확인하세요." 162 | 163 | #: inc/config.class.php:153 164 | msgid "" 165 | "You may want to have a different dashboard url (with https for example) than" 166 | " the host (used to push the data) " 167 | msgstr "(데이터 푸쉬에 사용되는) 호스트와 (예를들면 https를 사용하는) 다른 대시보드 url을 가지길 원하는 것 같습니다" 168 | 169 | #: inc/config.class.php:112 170 | msgid "username (metabase admin)" 171 | msgstr "사용자명 (메타베이스 관리자)" 172 | -------------------------------------------------------------------------------- /locales/metabase.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2025-01-06 01:03+0000\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: inc/config.class.php:259 21 | msgid "(Re)generate datamodel in Metabase" 22 | msgstr "" 23 | 24 | #: inc/config.class.php:186 25 | msgid "API status" 26 | msgstr "" 27 | 28 | #: inc/apiclient.class.php:67 29 | msgid "API: get GLPI database" 30 | msgstr "" 31 | 32 | #: inc/apiclient.class.php:61 33 | msgid "API: get current user" 34 | msgstr "" 35 | 36 | #: inc/apiclient.class.php:65 37 | msgid "API: get databases" 38 | msgstr "" 39 | 40 | #: inc/apiclient.class.php:63 41 | msgid "API: get users" 42 | msgstr "" 43 | 44 | #: inc/apiclient.class.php:59 45 | msgid "API: login" 46 | msgstr "" 47 | 48 | #: inc/config.class.php:218 49 | msgid "Action(s)" 50 | msgstr "" 51 | 52 | #: inc/profileright.class.php:109 53 | msgid "Allow access to all" 54 | msgstr "" 55 | 56 | #: inc/config.class.php:230 57 | msgid "Create GLPI database in local Metabase" 58 | msgstr "" 59 | 60 | #: inc/profileright.class.php:114 61 | msgid "Disallow access to all" 62 | msgstr "" 63 | 64 | #: inc/apiclient.class.php:694 65 | #, php-format 66 | msgid "Enabling embedded display fails for dashboard %s." 67 | msgstr "" 68 | 69 | #: front/collections.php:95 70 | msgid "Extract dashboards from metabase:" 71 | msgstr "" 72 | 73 | #: front/collections.php:63 74 | msgid "Extract questions from metabase:" 75 | msgstr "" 76 | 77 | #: front/profileright.form.php:43 front/profileright.form.php:70 78 | msgid "Invalid request." 79 | msgstr "" 80 | 81 | #: inc/config.class.php:205 82 | msgid "Last Error" 83 | msgstr "" 84 | 85 | #: inc/profileright.class.php:48 inc/config.class.php:39 86 | msgid "Metabase" 87 | msgstr "" 88 | 89 | #: front/collections.php:34 90 | msgid "Metabase collections" 91 | msgstr "" 92 | 93 | #: inc/dashboard.class.php:43 94 | msgid "Metabase dashboard" 95 | msgstr "" 96 | 97 | #: inc/config.class.php:142 98 | msgid "Metabase embedded token (to display dashboard in GLPI)" 99 | msgstr "" 100 | 101 | #: inc/config.class.php:95 102 | msgid "Metabase host" 103 | msgstr "" 104 | 105 | #: inc/config.class.php:103 106 | msgid "Metabase port" 107 | msgstr "" 108 | 109 | #: inc/config.class.php:152 110 | msgid "Metabase url" 111 | msgstr "" 112 | 113 | #: inc/apiclient.class.php:186 114 | msgid "No auto-generated GLPI database found" 115 | msgstr "" 116 | 117 | #: inc/config.class.php:238 118 | msgid "OR set an existing database: " 119 | msgstr "" 120 | 121 | #: inc/config.class.php:228 122 | msgid "Previously stored database is not existing anymore." 123 | msgstr "" 124 | 125 | #: inc/config.class.php:252 126 | msgid "Push reports and dashboards in Metabase" 127 | msgstr "" 128 | 129 | #: inc/apiclient.class.php:883 130 | msgid "" 131 | "Query to metabase failed because operation timed out. Maybe you should " 132 | "increase the timeout value in plugin configuration" 133 | msgstr "" 134 | 135 | #: front/collections.php:44 136 | msgid "Reports and dashboards specifications" 137 | msgstr "" 138 | 139 | #: inc/profileright.class.php:100 140 | msgid "Rights management" 141 | msgstr "" 142 | 143 | #: inc/config.class.php:242 144 | msgid "Set database" 145 | msgstr "" 146 | 147 | #: inc/config.class.php:267 148 | msgid "Show reports and dashboards specifications" 149 | msgstr "" 150 | 151 | #: inc/config.class.php:163 152 | msgid "Timeout for sending data (in seconds)" 153 | msgstr "" 154 | 155 | #: front/collections.php:107 156 | msgid "Unable to access Metabase data. Please check plugin configuration." 157 | msgstr "" 158 | 159 | #: inc/config.class.php:153 160 | msgid "" 161 | "You may want to have a different dashboard url (with https for example) than " 162 | "the host (used to push the data) " 163 | msgstr "" 164 | 165 | #: inc/config.class.php:112 166 | msgid "username (metabase admin)" 167 | msgstr "" 168 | -------------------------------------------------------------------------------- /locales/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/pt_BR.mo -------------------------------------------------------------------------------- /locales/pt_BR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Diego Nobre , 2021 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Diego Nobre , 2021\n" 17 | "Language-Team: Portuguese (Brazil) (https://app.transifex.com/teclib/teams/28042/pt_BR/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: pt_BR\n" 22 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "(Re)gerar modelo de dados no Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Status da API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: obter banco de dados GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obter o usuário atual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: obter bancos de dados" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obter usuários" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: login" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Ação(ões)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir acesso a todos" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Criar banco de dados GLPI no Metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Proibir acesso a todos" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "Falha ao ativar a exibição incorporada para o painel %s." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Extraia painéis do Metabase:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Extraia perguntas do Metabase:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "Requisição inválida." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Último erro" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "Coleções Metabase" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Painel Metabase" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Token incorporado do Metabase (para exibir o painel no GLPI)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Host do Metabase" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Porta do Metabase" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "URL do Metabase" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "Nenhum banco de dados GLPI gerado automaticamente foi encontrado" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "OU defina um banco de dados existente:" 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "O banco de dados armazenado anteriormente não existe mais." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Envie relatórios e painéis no Metabase" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "A consulta ao Metabase falhou porque a operação atingiu o tempo limite. " 139 | "Talvez você deva aumentar o valor do tempo limite na configuração do plugin" 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "Especificações de relatórios e painéis" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "Gestão de permissões" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Definir banco de dados" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "Mostrar especificações de relatórios e painéis" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Tempo limite para envio de dados (em segundos)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "" 164 | "Incapaz de acessar os dados do Metabase. Verifique a configuração do plugin." 165 | 166 | #: inc/config.class.php:153 167 | msgid "" 168 | "You may want to have a different dashboard url (with https for example) than" 169 | " the host (used to push the data) " 170 | msgstr "" 171 | "Você pode querer ter uma URL de painel diferente (com https, por exemplo) do" 172 | " host (usado para enviar os dados)" 173 | 174 | #: inc/config.class.php:112 175 | msgid "username (metabase admin)" 176 | msgstr "Nome de usuário (admin do Metabase)" 177 | -------------------------------------------------------------------------------- /locales/pt_PT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/pt_PT.mo -------------------------------------------------------------------------------- /locales/pt_PT.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Rui Melo , 2019 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Rui Melo , 2019\n" 17 | "Language-Team: Portuguese (Portugal) (https://app.transifex.com/teclib/teams/28042/pt_PT/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: pt_PT\n" 22 | "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "Gerar/Regenerar datamodel na metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Status da API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: obter base de dados GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: obter o usuário atual" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: obter base de dados" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: obter utilizadores" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: login" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Ação(s)" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Permitir o acesso a todos os" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Criar base de dados GLPI na metabase local" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Não permitir o acesso a todos" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "Ativar a exibição incorporada falha para a Dashboard %s." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Extraia dashboards da metabase:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Extraia perguntas da metabase:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "Pedido inválido." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Último erro" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Painel da metabase" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Token incorporado da metabase (para exibir o painel no GLPI)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Host da metabase" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Porta da metabase" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "URL da metabase" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "Nenhum banco de dados GLPI gerado automaticamente encontrado" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "OU definir um base de dados existente: " 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "A base de dados anteriormente armazenado não está mais existente." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Enviar relatórios e Dashboards na metabase" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "Consulta à metabase falhou porque a operação expirou. Talvez deva aumentar o" 139 | " valor de tempo limite na configuração do plugin" 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "Gestão de direitos" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Definir base de dados" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Tempo limite para envio de dados (em segundos)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "" 164 | 165 | #: inc/config.class.php:153 166 | msgid "" 167 | "You may want to have a different dashboard url (with https for example) than" 168 | " the host (used to push the data) " 169 | msgstr "" 170 | "Convém ter um URL de Dashboard diferente (com HTTPS, por exemplo) que o host" 171 | " (usado para enviar os dados) " 172 | 173 | #: inc/config.class.php:112 174 | msgid "username (metabase admin)" 175 | msgstr "username (administrador da metabase)" 176 | -------------------------------------------------------------------------------- /locales/sk_SK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/sk_SK.mo -------------------------------------------------------------------------------- /locales/sk_SK.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # feonsu , 2024 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: feonsu , 2024\n" 17 | "Language-Team: Slovak (Slovakia) (https://app.transifex.com/teclib/teams/28042/sk_SK/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: sk_SK\n" 22 | "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "Znova generovať dátový model v Metabase" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "Stav API" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: získať databázu GLPI" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: získať aktuálneho používateľa" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: získať databázu" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: získať používateľov" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: prihlásenie" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "Akcie" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Umožniť prístup ku všetkému" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Vytvoriť databázu GLPI v lokálnej Metabase" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Zakázať prístup ku všetkému" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "Zlyhalo povolenie vstavaného zobrazenia pre dashboard %s." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Vytiahnuť dashboardy z metabase:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Vytiahnuť dotazy z metabase:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "Neplatná požiadavka." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Posledná chyba" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "Metabase kolekcie" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Metabase dashboard" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Metabase integrovaný token (pre zobrazenie dashboardu v GLPI)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Metabase server" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Metabase port" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "URL adresa Metabase" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "Nebola nájdená žiadna automaticky vygenerovaná databáza GLPI" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "ALEBO nastaviť existujúcu databázu:" 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "Predtým uložená databáza už neexistuje." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Odoslať reporty a dashboardy do Metabase" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "Dotaz do metabase zlyhal pretože časový limit operácie vypršal. Možno by ste" 139 | " mali hodnotu časového limitu zvýšiť v konfigurácii pluginu" 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "Špecifikácie reportov a dashboardov" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "Správa oprávnení" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Nastavenie databázy" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "Zobraziť špecifikáciu reportov a dashboardov" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Časový limit pre odoslanie dát (v sekundách)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "" 164 | "Nepodarilo sa získať prístup k dátam Metabase. Skontrolujte konfiguráciu " 165 | "pluginu." 166 | 167 | #: inc/config.class.php:153 168 | msgid "" 169 | "You may want to have a different dashboard url (with https for example) than" 170 | " the host (used to push the data) " 171 | msgstr "" 172 | "Možno budete chcieť mať inú URL adresu dashboardu (napr. s https) ako je " 173 | "server (použitú pre odosielanie dát)" 174 | 175 | #: inc/config.class.php:112 176 | msgid "username (metabase admin)" 177 | msgstr "používateľské meno (metabase admin)" 178 | -------------------------------------------------------------------------------- /locales/tr_TR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/tr_TR.mo -------------------------------------------------------------------------------- /locales/tr_TR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Kaya Zeren , 2024 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: PACKAGE VERSION\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 15 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 16 | "Last-Translator: Kaya Zeren , 2024\n" 17 | "Language-Team: Turkish (Turkey) (https://app.transifex.com/teclib/teams/28042/tr_TR/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: tr_TR\n" 22 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 23 | 24 | #: inc/config.class.php:259 25 | msgid "(Re)generate datamodel in Metabase" 26 | msgstr "Metabase veri modelini (yeniden) oluştur" 27 | 28 | #: inc/config.class.php:186 29 | msgid "API status" 30 | msgstr "API durumu" 31 | 32 | #: inc/apiclient.class.php:67 33 | msgid "API: get GLPI database" 34 | msgstr "API: GLPI veri tabanını al" 35 | 36 | #: inc/apiclient.class.php:61 37 | msgid "API: get current user" 38 | msgstr "API: Geçerli kullanıcıyı al" 39 | 40 | #: inc/apiclient.class.php:65 41 | msgid "API: get databases" 42 | msgstr "API: Veri tabanlarını al" 43 | 44 | #: inc/apiclient.class.php:63 45 | msgid "API: get users" 46 | msgstr "API: Kullanıcıları al" 47 | 48 | #: inc/apiclient.class.php:59 49 | msgid "API: login" 50 | msgstr "API: Oturum açma" 51 | 52 | #: inc/config.class.php:218 53 | msgid "Action(s)" 54 | msgstr "İşlemler" 55 | 56 | #: inc/profileright.class.php:109 57 | msgid "Allow access to all" 58 | msgstr "Tümüne erişim izni ver" 59 | 60 | #: inc/config.class.php:230 61 | msgid "Create GLPI database in local Metabase" 62 | msgstr "Yerel Metabase üzerinde GLPI veri tabanı oluşturun" 63 | 64 | #: inc/profileright.class.php:114 65 | msgid "Disallow access to all" 66 | msgstr "Tümünden erişim iznini kaldır" 67 | 68 | #: inc/apiclient.class.php:694 69 | #, php-format 70 | msgid "Enabling embedded display fails for dashboard %s." 71 | msgstr "%s panosu için gömülü ekran etkinleştiriliyor." 72 | 73 | #: front/collections.php:95 74 | msgid "Extract dashboards from metabase:" 75 | msgstr "Metabase üzerinden panoları ayıkla:" 76 | 77 | #: front/collections.php:63 78 | msgid "Extract questions from metabase:" 79 | msgstr "Metabase üzerinden soruları ayıkla:" 80 | 81 | #: front/profileright.form.php:43 front/profileright.form.php:70 82 | msgid "Invalid request." 83 | msgstr "İstek geçersiz." 84 | 85 | #: inc/config.class.php:205 86 | msgid "Last Error" 87 | msgstr "Son hata" 88 | 89 | #: inc/profileright.class.php:48 inc/config.class.php:39 90 | msgid "Metabase" 91 | msgstr "Metabase" 92 | 93 | #: front/collections.php:34 94 | msgid "Metabase collections" 95 | msgstr "Metabase derlemeleri" 96 | 97 | #: inc/dashboard.class.php:43 98 | msgid "Metabase dashboard" 99 | msgstr "Metabase panosu" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Metabase embedded token (to display dashboard in GLPI)" 103 | msgstr "Metabase gömülü kodu (panonun GLPI içinde görüntülenmesi için)" 104 | 105 | #: inc/config.class.php:95 106 | msgid "Metabase host" 107 | msgstr "Metabase sunucusu" 108 | 109 | #: inc/config.class.php:103 110 | msgid "Metabase port" 111 | msgstr "Metabase bağlantı noktası" 112 | 113 | #: inc/config.class.php:152 114 | msgid "Metabase url" 115 | msgstr "Metabase adresi" 116 | 117 | #: inc/apiclient.class.php:186 118 | msgid "No auto-generated GLPI database found" 119 | msgstr "Otomatik olarak üretilmiş bir GLPI veri tabanı bulunamadı" 120 | 121 | #: inc/config.class.php:238 122 | msgid "OR set an existing database: " 123 | msgstr "YA DA var olan bir veri tabanı ayarlayın" 124 | 125 | #: inc/config.class.php:228 126 | msgid "Previously stored database is not existing anymore." 127 | msgstr "Daha önce kaydedilmiş veri tabanı artık yok." 128 | 129 | #: inc/config.class.php:252 130 | msgid "Push reports and dashboards in Metabase" 131 | msgstr "Rapor ve panoları Metabase üzerine gönder" 132 | 133 | #: inc/apiclient.class.php:883 134 | msgid "" 135 | "Query to metabase failed because operation timed out. Maybe you should " 136 | "increase the timeout value in plugin configuration" 137 | msgstr "" 138 | "İşlem zaman aşımına uğradığından Metabase sorgulanamadı. Eklenti " 139 | "yapılandırmasındaki zaman aşımı değerini arttırmanız işe yarayabilir." 140 | 141 | #: front/collections.php:44 142 | msgid "Reports and dashboards specifications" 143 | msgstr "Raporların ve panoların özellikleri" 144 | 145 | #: inc/profileright.class.php:100 146 | msgid "Rights management" 147 | msgstr "İzin yönetimi" 148 | 149 | #: inc/config.class.php:242 150 | msgid "Set database" 151 | msgstr "Veri tabanı ayarla" 152 | 153 | #: inc/config.class.php:267 154 | msgid "Show reports and dashboards specifications" 155 | msgstr "Raporların ve panoların özelliklerini görüntüle" 156 | 157 | #: inc/config.class.php:163 158 | msgid "Timeout for sending data (in seconds)" 159 | msgstr "Veri gönderme zaman aşımı (saniye)" 160 | 161 | #: front/collections.php:107 162 | msgid "Unable to access Metabase data. Please check plugin configuration." 163 | msgstr "" 164 | "Metabase verilerine erişilemiyor. Lütfen eklenti yapılandırmasını " 165 | "denetleyin." 166 | 167 | #: inc/config.class.php:153 168 | msgid "" 169 | "You may want to have a different dashboard url (with https for example) than" 170 | " the host (used to push the data) " 171 | msgstr "" 172 | "Sunucudan (veri göndermek için kullanılan) farklı bir pano adresi kullanmak " 173 | "isteyebilirsiniz örneğin https gibi) " 174 | 175 | #: inc/config.class.php:112 176 | msgid "username (metabase admin)" 177 | msgstr "Kullanıcı adı (Metabase yöneticisi)" 178 | -------------------------------------------------------------------------------- /locales/zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/locales/zh_CN.mo -------------------------------------------------------------------------------- /locales/zh_CN.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # liAnGjiA , 2018 8 | # 李赋 , 2018 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: PACKAGE VERSION\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2024-12-30 01:02+0000\n" 16 | "PO-Revision-Date: 2018-08-17 13:43+0000\n" 17 | "Last-Translator: 李赋 , 2018\n" 18 | "Language-Team: Chinese (China) (https://app.transifex.com/teclib/teams/28042/zh_CN/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: zh_CN\n" 23 | "Plural-Forms: nplurals=1; plural=0;\n" 24 | 25 | #: inc/config.class.php:259 26 | msgid "(Re)generate datamodel in Metabase" 27 | msgstr "(重新)在Metabase中生成数据模型" 28 | 29 | #: inc/config.class.php:186 30 | msgid "API status" 31 | msgstr "API 状态" 32 | 33 | #: inc/apiclient.class.php:67 34 | msgid "API: get GLPI database" 35 | msgstr "API:获取GLPI数据库" 36 | 37 | #: inc/apiclient.class.php:61 38 | msgid "API: get current user" 39 | msgstr "API:获取当前用户" 40 | 41 | #: inc/apiclient.class.php:65 42 | msgid "API: get databases" 43 | msgstr "API:获取数据库" 44 | 45 | #: inc/apiclient.class.php:63 46 | msgid "API: get users" 47 | msgstr "API:获取用户" 48 | 49 | #: inc/apiclient.class.php:59 50 | msgid "API: login" 51 | msgstr "API:登录" 52 | 53 | #: inc/config.class.php:218 54 | msgid "Action(s)" 55 | msgstr "" 56 | 57 | #: inc/profileright.class.php:109 58 | msgid "Allow access to all" 59 | msgstr "允许全部访问" 60 | 61 | #: inc/config.class.php:230 62 | msgid "Create GLPI database in local Metabase" 63 | msgstr "在本地Metabase创建GLPI数据库" 64 | 65 | #: inc/profileright.class.php:114 66 | msgid "Disallow access to all" 67 | msgstr "禁止全部访问" 68 | 69 | #: inc/apiclient.class.php:694 70 | #, php-format 71 | msgid "Enabling embedded display fails for dashboard %s." 72 | msgstr "仪表板启用嵌入式显示失败%s" 73 | 74 | #: front/collections.php:95 75 | msgid "Extract dashboards from metabase:" 76 | msgstr "从Metabase中提取仪表板:" 77 | 78 | #: front/collections.php:63 79 | msgid "Extract questions from metabase:" 80 | msgstr "从metabase中提取问题:" 81 | 82 | #: front/profileright.form.php:43 front/profileright.form.php:70 83 | msgid "Invalid request." 84 | msgstr "无效请求。 " 85 | 86 | #: inc/config.class.php:205 87 | msgid "Last Error" 88 | msgstr "上次错误" 89 | 90 | #: inc/profileright.class.php:48 inc/config.class.php:39 91 | msgid "Metabase" 92 | msgstr "" 93 | 94 | #: front/collections.php:34 95 | msgid "Metabase collections" 96 | msgstr "" 97 | 98 | #: inc/dashboard.class.php:43 99 | msgid "Metabase dashboard" 100 | msgstr "Metabase仪表盘" 101 | 102 | #: inc/config.class.php:142 103 | msgid "Metabase embedded token (to display dashboard in GLPI)" 104 | msgstr "Metabase嵌入式令牌(在GLPI中显示仪表板)" 105 | 106 | #: inc/config.class.php:95 107 | msgid "Metabase host" 108 | msgstr "Metabase 主机" 109 | 110 | #: inc/config.class.php:103 111 | msgid "Metabase port" 112 | msgstr "Metabase 端口" 113 | 114 | #: inc/config.class.php:152 115 | msgid "Metabase url" 116 | msgstr "Metabase网址" 117 | 118 | #: inc/apiclient.class.php:186 119 | msgid "No auto-generated GLPI database found" 120 | msgstr "未找到自动生成的GLPI数据库" 121 | 122 | #: inc/config.class.php:238 123 | msgid "OR set an existing database: " 124 | msgstr "或者设置现有数据库:" 125 | 126 | #: inc/config.class.php:228 127 | msgid "Previously stored database is not existing anymore." 128 | msgstr "以前存储的数据库不存在。" 129 | 130 | #: inc/config.class.php:252 131 | msgid "Push reports and dashboards in Metabase" 132 | msgstr "在Metabase中推送报告和仪表盘" 133 | 134 | #: inc/apiclient.class.php:883 135 | msgid "" 136 | "Query to metabase failed because operation timed out. Maybe you should " 137 | "increase the timeout value in plugin configuration" 138 | msgstr "对metabase的查询失败,因为操作超时。也许你应该增加插件配置中的超时值" 139 | 140 | #: front/collections.php:44 141 | msgid "Reports and dashboards specifications" 142 | msgstr "" 143 | 144 | #: inc/profileright.class.php:100 145 | msgid "Rights management" 146 | msgstr "权限管理" 147 | 148 | #: inc/config.class.php:242 149 | msgid "Set database" 150 | msgstr "设置数据库" 151 | 152 | #: inc/config.class.php:267 153 | msgid "Show reports and dashboards specifications" 154 | msgstr "" 155 | 156 | #: inc/config.class.php:163 157 | msgid "Timeout for sending data (in seconds)" 158 | msgstr "数据发送超时 (in seconds)" 159 | 160 | #: front/collections.php:107 161 | msgid "Unable to access Metabase data. Please check plugin configuration." 162 | msgstr "" 163 | 164 | #: inc/config.class.php:153 165 | msgid "" 166 | "You may want to have a different dashboard url (with https for example) than" 167 | " the host (used to push the data) " 168 | msgstr "您可能希望拥有与主机(用于推送数据)不同的仪表板URL(例如,使用https)" 169 | 170 | #: inc/config.class.php:112 171 | msgid "username (metabase admin)" 172 | msgstr "用户名 (metabase admin)" 173 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/logo.png -------------------------------------------------------------------------------- /metabase.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * ------------------------------------------------------------------------- 3 | * Metabase plugin for GLPI 4 | * ------------------------------------------------------------------------- 5 | * 6 | * LICENSE 7 | * 8 | * This file is part of Metabase. 9 | * 10 | * Metabase is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Metabase is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Metabase. If not, see . 22 | * ------------------------------------------------------------------------- 23 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 24 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 25 | * @link https://github.com/pluginsGLPI/metabase 26 | * ------------------------------------------------------------------------- 27 | */ 28 | 29 | .metabase_config { 30 | text-align: left; 31 | width: 950px; 32 | margin: 0 auto; 33 | } 34 | 35 | .metabase_config h1, 36 | .metabase_title { 37 | font-size: 12px; 38 | font-weight: bold; 39 | text-align: center; 40 | padding: 5px 10px 5px 0; 41 | border-radius: 0; 42 | margin: 15px 0 20px 0; 43 | font-size: 1.1em; 44 | color: #000; 45 | padding: 10px 5px; 46 | background-color: #F1F1F1; 47 | } 48 | 49 | .metabase_field { 50 | margin: 10px 0 35px 0; 51 | position: relative; 52 | height: 35px; 53 | text-align: left; 54 | } 55 | 56 | .metabase_field .metabase_input, 57 | .metabase_field .select2-container { 58 | display: inline-block; 59 | } 60 | 61 | .metabase_field .select2-container { 62 | padding: inherit; 63 | } 64 | 65 | .metabase_field .metabase_help { 66 | color: #A1A1A1; 67 | cursor: help; 68 | margin-left: 3px; 69 | } 70 | 71 | .metabase_field .metabase_help:hover { 72 | color: #6B6B6B; 73 | } 74 | 75 | /* strangely, we can't do this with comma ...*/ 76 | .metabase_field .metabase_input::-webkit-input-placeholder { opacity: 0; transition: opacity 0.1s ease-in-out; } 77 | .metabase_field .metabase_input:-moz-placeholder { opacity: 0; transition: opacity 0.1s ease-in-out; } /* FF 4-18 */ 78 | .metabase_field .metabase_input::-moz-placeholder { opacity: 0; transition: opacity 0.1s ease-in-out; } /* FF 19+ */ 79 | .metabase_field .metabase_input:-ms-input-placeholder { opacity: 0; transition: opacity 0.1s ease-in-out; } /* IE 10+ */ 80 | .metabase_field .metabase_input:focus::-webkit-input-placeholder { opacity: 1; } 81 | .metabase_field .metabase_input:focus:-moz-placeholder { opacity: 1; } 82 | .metabase_field .metabase_input:focus::-moz-placeholder { opacity: 1; } 83 | .metabase_field .metabase_input:focus:-ms-input-placeholder { opacity: 1; } 84 | 85 | .metabase_field .metabase_input::-moz-placeholder { 86 | opacity: 0; 87 | transition: opacity 0.1s ease-in-out; 88 | } 89 | 90 | .metabase_field .metabase_label { 91 | position: absolute; 92 | top: 5px; 93 | left: 5px; 94 | color: #686868; 95 | z-index: 5; 96 | transition: 0.1s ease-in; 97 | } 98 | 99 | .metabase_field .metabase_input:focus { 100 | border-color: #5897fb; 101 | } 102 | 103 | .metabase_field .select2-container ~ .metabase_label, 104 | .metabase_field .no-wrap ~ .metabase_label, 105 | .metabase_field .metabase_input:focus ~ .metabase_label, 106 | .metabase_field .metabase_input:required:not(:valid) ~ .metabase_label, 107 | .metabase_field .metabase_input:valid ~ .metabase_label { 108 | top: -20px; 109 | } 110 | .metabase_field .metabase_input:focus ~ .metabase_label { 111 | color: #5897fb; 112 | font-weight: bold; 113 | } 114 | 115 | .metabase_config .submit { 116 | margin: 10px auto; 117 | } 118 | 119 | .metabase_config_block { 120 | background-color: #F3F3F3; 121 | padding: 10px; 122 | margin-top: -15px; 123 | } 124 | 125 | .metabase_config #actions .submit { 126 | margin: 0 10px; 127 | } 128 | 129 | .metabase_config ul.metabase_collection_list { 130 | list-style-type: none; 131 | margin-left: 10px; 132 | padding-left: 10px; 133 | } 134 | 135 | .metabase_config ul.metabase_collection_list { 136 | } 137 | 138 | .metabase_config ul.metabase_collection_list label{ 139 | background-color: #EEE; 140 | display: block; 141 | padding: 10px; 142 | margin-top: 2px; 143 | cursor: pointer; 144 | } 145 | 146 | .metabase_config ul.metabase_collection_list label:before { 147 | content: "\f054"; 148 | font-family:'FontAwesome'; 149 | margin-right: 4px; 150 | } 151 | 152 | .metabase_config ul.metabase_collection_list label.expanded:before { 153 | content: "\f078"; 154 | } 155 | 156 | .metabase_config ul.extract_list { 157 | border: 2px solid #EEE; 158 | } 159 | 160 | .metabase_config ul.extract_list.extract_dashboards { 161 | margin-left: 20px; 162 | } 163 | 164 | .metabase_config ul.extract_list li { 165 | padding: 5px 10px; 166 | } 167 | 168 | .metabase_config ul.extract_list li a { 169 | color: #444; 170 | } 171 | 172 | .metabase_config ul.extract_list li:nth-child(odd) { 173 | background-color: #F8F8F8; 174 | } 175 | 176 | .metabase_config ul.extract_list li:hover { 177 | background-color: #DDD; 178 | } 179 | 180 | .metabase_config ul.metabase_collection_list ul.extract_list { 181 | display: none; 182 | } 183 | 184 | .metabase_config ul.metabase_collection_list label.expanded + ul.extract_list { 185 | display: block; 186 | } 187 | 188 | #metabase_iframe { 189 | min-height: 1600px; 190 | height: 99.9%:; 191 | width: 100%; 192 | border: 0; 193 | } 194 | -------------------------------------------------------------------------------- /metabase.js: -------------------------------------------------------------------------------- 1 | /** 2 | * ------------------------------------------------------------------------- 3 | * Metabase plugin for GLPI 4 | * ------------------------------------------------------------------------- 5 | * 6 | * LICENSE 7 | * 8 | * This file is part of Metabase. 9 | * 10 | * Metabase is free software; you can redistribute it and/or modify 11 | * it under the terms of the GNU General Public License as published by 12 | * the Free Software Foundation; either version 2 of the License, or 13 | * (at your option) any later version. 14 | * 15 | * Metabase is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | * GNU General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU General Public License 21 | * along with Metabase. If not, see . 22 | * ------------------------------------------------------------------------- 23 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 24 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 25 | * @link https://github.com/pluginsGLPI/metabase 26 | * ------------------------------------------------------------------------- 27 | */ 28 | 29 | $(function() { 30 | 31 | // do like a jquery toggle but based on a parameter 32 | $.fn.toggleFromValue = function(val) { 33 | if (val === 1 34 | || val === "1" 35 | || val === true) { 36 | this.show(); 37 | } else { 38 | this.hide(); 39 | } 40 | }; 41 | 42 | $(document).on("click", ".metabase_collection_list label", function() { 43 | $(this).toggleClass('expanded'); 44 | }); 45 | 46 | $(document).on("click", "a.extract", function() { 47 | var id = $(this).data('id'); 48 | var type = $(this).data('type'); 49 | glpi_ajax_dialog({ 50 | dialogclass: 'modal-lg', 51 | url: CFG_GLPI.root_doc + '/' + GLPI_PLUGINS_PATH.metabase + '/ajax/extract_json.php', 52 | params: { 53 | id: id, 54 | type: type 55 | } 56 | }); 57 | }); 58 | }); 59 | -------------------------------------------------------------------------------- /metabase.xml: -------------------------------------------------------------------------------- 1 | 2 | Metabase 3 | metabase 4 | stable 5 | https://raw.githubusercontent.com/pluginsGLPI/metabase/main/logo.png 6 | 7 | 8 | This plugin eases integration of GLPI with Metabase 9 | Ce plugin facilite l'intégration de GLPI avec Metabase 10 | 11 | 12 | 13 | This plugin eases integration of GLPI with [Metabase](https://www.metabase.com/). 14 | 15 | It currently permits to: 16 | 17 | * Connect to Metabase API. 18 | * Push database configuration or use existing configured db in Metabase. 19 | * Push GLPI foreign keys in Metabase datamodel 20 | * Push GLPI enumeration (tickets impacts/urgency/priority/types) in metabase datamodel 21 | * Push questions, collections and dashboards (if exists). 22 | * Integrate Metabase dashboards into GLPI (on Central). 23 | * Manage profiles (dashboards publication) 24 | * import existing questions/dashboards/collection from Metabase and save them as json 25 | 26 | [Teclib'](http://www.teclib-group.com/) provides with [GLPI Network](https://services.glpi-network.com/) distribution, additional services like support for installation, questions and dashboards conception. 27 | 28 | 29 | Ce plugin facilite l'intégration de GLPI avec [Metabase](https://www.metabase.com/). 30 | 31 | Il permet actuellement de: 32 | 33 | * Se connecter à l'API de Metabase. 34 | * Pousser la configuration de la base de données ou d'utiliser une base de données configurée dans Metabase. 35 | * Pousser les clefs étrangère dans le modèle de données de Metabase 36 | * Pousser les énumérations (champs impact/urgence/priorité/type des tickets) dans le modèle de données 37 | * Pousser les questions, collections et tableaux de bords (si ils existent) 38 | * Intégrer les tableaux de bord de Metabase dans GLPI (sur la page centrale) 39 | * Gérer les profils (publication des tableaux de bord) 40 | * Importer les questions, collections et tableaux de bord existant depuis Metabase et les enregistrer au format JSON 41 | 42 | [Teclib'](http://www.teclib-group.com/) fournit avec la distribution [GLPI Network](https://services.glpi-network.com/) des services additionnels comme du support pour l'installation, de la conception de questions et tableaux de bord. 43 | 44 | 45 | 46 | https://github.com/pluginsGLPI/metabase 47 | https://github.com/pluginsGLPI/metabase/releases 48 | https://github.com/pluginsGLPI/metabase/issues 49 | https://github.com/pluginsGLPI/metabase/blob/main/Readme.md 50 | 51 | Teclib' 52 | 53 | 54 | 55 | 1.3.3 56 | ~10.0.0 57 | https://github.com/pluginsGLPI/metabase/releases/download/1.3.3/glpi-metabase-1.3.3.tar.bz2 58 | 59 | 60 | 1.3.2 61 | ~10.0.0 62 | https://github.com/pluginsGLPI/metabase/releases/download/1.3.2/glpi-metabase-1.3.2.tar.bz2 63 | 64 | 65 | 1.3.1 66 | ~10.0.0 67 | https://github.com/pluginsGLPI/metabase/releases/download/1.3.1/glpi-metabase-1.3.1.tar.bz2 68 | 69 | 70 | 1.3.0 71 | ~10.0.0 72 | https://github.com/pluginsGLPI/metabase/releases/download/1.3.0/glpi-metabase-1.3.0.tar.bz2 73 | 74 | 75 | 1.2.4 76 | ~9.5.0 77 | https://github.com/pluginsGLPI/metabase/releases/download/1.2.4/glpi-metabase-1.2.4.tar.bz2 78 | 79 | 80 | 1.2.3 81 | ~9.5.0 82 | https://github.com/pluginsGLPI/metabase/releases/download/1.2.3/glpi-metabase-1.2.3.tar.bz2 83 | 84 | 85 | 1.2.2 86 | ~9.5.0 87 | https://github.com/pluginsGLPI/metabase/releases/download/1.2.2/glpi-metabase-1.2.2.tar.bz2 88 | 89 | 90 | 1.2.1 91 | ~9.5.0 92 | https://github.com/pluginsGLPI/metabase/releases/download/1.2.1/glpi-metabase-1.2.1.tar.bz2 93 | 94 | 95 | 1.2.0 96 | ~9.5.0 97 | https://github.com/pluginsGLPI/metabase/releases/download/1.2.0/glpi-metabase-1.2.0.tar.bz2 98 | 99 | 100 | 1.1.0 101 | ~9.5.0 102 | https://github.com/pluginsGLPI/metabase/releases/download/1.1.0/glpi-metabase-1.1.0.tar.bz2 103 | 104 | 105 | 1.0.0 106 | 9.4 107 | 9.3 108 | 9.2 109 | 110 | 111 | 0.9.0 112 | 9.4 113 | 9.3 114 | 9.2 115 | 116 | 117 | 0.8.1 118 | 9.3 119 | 9.2 120 | 121 | 122 | 0.8.0 123 | 9.3 124 | 9.2 125 | 126 | 127 | 128 | en_GB 129 | 130 | AGPLv3 131 | 132 | 133 | Reporting 134 | Data-vizualisation 135 | Business-intelligence 136 | Dashboard 137 | Statistics 138 | Central 139 | 140 | 141 | rapports 142 | Visualisation de données 143 | Tableau-de-bord 144 | Graphiques 145 | Statistiques 146 | Central 147 | 148 | 149 | 150 | https://raw.githubusercontent.com/pluginsGLPI/metabase/main/screenshots/teclib_helpdesk.png 151 | https://raw.githubusercontent.com/pluginsGLPI/metabase/main/screenshots/teclib_assets.png 152 | https://raw.githubusercontent.com/pluginsGLPI/metabase/main/screenshots/configuration.png 153 | https://raw.githubusercontent.com/pluginsGLPI/metabase/main/screenshots/central.png 154 | 155 | 156 | -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- 1 | parameters: 2 | parallel: 3 | maximumNumberOfProcesses: 2 4 | level: 5 5 | bootstrapFiles: 6 | - ../../inc/based_config.php 7 | paths: 8 | - inc 9 | - front 10 | - ajax 11 | - hook.php 12 | - setup.php 13 | scanDirectories: 14 | - ../../inc 15 | - ../../src 16 | stubFiles: 17 | - ../../stubs/glpi_constants.php 18 | rules: 19 | - GlpiProject\Tools\PHPStan\Rules\GlobalVarTypeRule 20 | -------------------------------------------------------------------------------- /reports/readme.md: -------------------------------------------------------------------------------- 1 | # Reports directory. 2 | 3 | Place here json files you want to push to metabase. 4 | This folder can contains sub folders, the plugin will parse json files recursively. 5 | 6 | For json file format, prepare your reports directly into metabase gui, and use extract process (from Setup > General menu) to store them here. 7 | -------------------------------------------------------------------------------- /screenshots/central.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/screenshots/central.png -------------------------------------------------------------------------------- /screenshots/configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/screenshots/configuration.png -------------------------------------------------------------------------------- /screenshots/teclib_assets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/screenshots/teclib_assets.png -------------------------------------------------------------------------------- /screenshots/teclib_helpdesk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pluginsGLPI/metabase/c02f60557631421ad3839c66412178350ab5051a/screenshots/teclib_helpdesk.png -------------------------------------------------------------------------------- /setup.php: -------------------------------------------------------------------------------- 1 | . 24 | * ------------------------------------------------------------------------- 25 | * @copyright Copyright (C) 2018-2023 by Metabase plugin team. 26 | * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 27 | * @link https://github.com/pluginsGLPI/metabase 28 | * ------------------------------------------------------------------------- 29 | */ 30 | 31 | define('PLUGIN_METABASE_VERSION', '1.3.3'); 32 | 33 | // Minimal GLPI version, inclusive 34 | define('PLUGIN_METABASE_MIN_GLPI', '10.0.11'); 35 | // Maximum GLPI version, exclusive 36 | define('PLUGIN_METABASE_MAX_GLPI', '10.0.99'); 37 | 38 | if (!defined('PLUGINMETABASE_DIR')) { 39 | define('PLUGINMETABASE_DIR', __DIR__); 40 | } 41 | if (!defined('PLUGINMETABASE_REPORTS_DIR')) { 42 | define('PLUGINMETABASE_REPORTS_DIR', PLUGINMETABASE_DIR . '/reports'); 43 | } 44 | if (!defined('PLUGINMETABASE_DASHBOARDS_DIR')) { 45 | define('PLUGINMETABASE_DASHBOARDS_DIR', PLUGINMETABASE_DIR . '/dashboards'); 46 | } 47 | 48 | /** 49 | * Init hooks of the plugin. 50 | * REQUIRED 51 | * 52 | * @return void 53 | */ 54 | function plugin_init_metabase() 55 | { 56 | /** @var array $PLUGIN_HOOKS */ 57 | global $PLUGIN_HOOKS; 58 | 59 | $PLUGIN_HOOKS['csrf_compliant']['metabase'] = true; 60 | 61 | // add autoload for vendor 62 | include_once(PLUGINMETABASE_DIR . '/vendor/autoload.php'); 63 | 64 | // don't load hooks if plugin not enabled (or glpi not logged) 65 | if (!Plugin::isPluginActive('metabase') || !Session::getLoginUserID()) { 66 | return; 67 | } 68 | 69 | // config page 70 | Plugin::registerClass('PluginMetabaseConfig', ['addtabon' => 'Config']); 71 | $PLUGIN_HOOKS['config_page']['metabase'] = 'front/config.form.php'; 72 | 73 | // add dashboards 74 | Plugin::registerClass('PluginMetabaseDashboard', ['addtabon' => 'Central']); 75 | 76 | //display helpdesk menu if self-service and if is able to view at least one dashboard. 77 | if ( 78 | $_SESSION['glpiactiveprofile']['interface'] == 'helpdesk' 79 | && PluginMetabaseProfileright::canProfileViewDashboards($_SESSION['glpiactiveprofile']['id']) 80 | ) { 81 | $PLUGIN_HOOKS['helpdesk_menu_entry']['metabase'] = '/front/selfservice.php'; 82 | $PLUGIN_HOOKS['helpdesk_menu_entry_icon']['metabase'] = 'ti ti-chart-bar'; 83 | } 84 | 85 | 86 | // profile rights management 87 | Plugin::registerClass('PluginMetabaseProfileright', ['addtabon' => 'Profile']); 88 | 89 | // css & js 90 | $PLUGIN_HOOKS['add_css']['metabase'] = 'metabase.css'; 91 | $PLUGIN_HOOKS['add_javascript']['metabase'] = 'metabase.js'; 92 | 93 | // Encryption 94 | $PLUGIN_HOOKS['secured_configs']['metabase'] = ['password']; 95 | } 96 | 97 | 98 | /** 99 | * Get the name and the version of the plugin 100 | * REQUIRED 101 | * 102 | * @return array 103 | */ 104 | function plugin_version_metabase() 105 | { 106 | return [ 107 | 'name' => 'Metabase', 108 | 'version' => PLUGIN_METABASE_VERSION, 109 | 'author' => 'Teclib\'', 110 | 'license' => 'GPLv2+', 111 | 'homepage' => 'https://github.com/pluginsGLPI/metabase', 112 | 'requirements' => [ 113 | 'glpi' => [ 114 | 'min' => PLUGIN_METABASE_MIN_GLPI, 115 | 'max' => PLUGIN_METABASE_MAX_GLPI, 116 | ], 117 | ], 118 | ]; 119 | } 120 | 121 | function plugin_metabase_recursive_remove_empty($haystack) 122 | { 123 | foreach ($haystack as $key => $value) { 124 | if (is_array($value)) { 125 | if (count($value) == 0) { 126 | unset($haystack[$key]); 127 | } else { 128 | $haystack[$key] = plugin_metabase_recursive_remove_empty($haystack[$key]); 129 | } 130 | } elseif ($haystack[$key] === '') { 131 | unset($haystack[$key]); 132 | } 133 | } 134 | 135 | return $haystack; 136 | } 137 | -------------------------------------------------------------------------------- /tools/HEADER: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------- 2 | Metabase plugin for GLPI 3 | ------------------------------------------------------------------------- 4 | 5 | LICENSE 6 | 7 | This file is part of Metabase. 8 | 9 | Metabase is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation; either version 2 of the License, or 12 | (at your option) any later version. 13 | 14 | Metabase is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with Metabase. If not, see . 21 | ------------------------------------------------------------------------- 22 | @copyright Copyright (C) 2018-2023 by Metabase plugin team. 23 | @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html 24 | @link https://github.com/pluginsGLPI/metabase 25 | ------------------------------------------------------------------------- 26 | --------------------------------------------------------------------------------