# Badge for GlotPress 
Contributors: bastho, agencenous  
Donate link:  https://apps.avecnous.eu/produit/badge-for-glotpress/?mtm_campaign=wp-plugin&mtm_kwd=badge-for-glotpress&mtm_medium=wp-repo&mtm_source=donate  
Author URI: https://apps.avecnous.eu/produit/badge-for-glotpress/?mtm_campaign=wp-plugin&mtm_kwd=badge-for-glotpress&mtm_medium=wp-repo&mtm_source=author  
Tags: glotpress, badge, translation, git, version  
Requires at least: 5.0  
Tested up to: 7.0  
Stable tag: 1.0.3    
License: GPLv2+  

Generate badges for GloPress in your projects

## Description

Generate SVG badges of translation statuses in your projects. This plugin requires GlotPress to be installed.

**Badges:**

Project badges:

* <code>translation_sets</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/translation_sets.svg)
* <code>sub_projects</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/sub_projects.svg)

Translation sets badges:

* <code>all_count</code> ![image](https://plugins.svn.wordpress.org/badge-for-glotpress/assets/examples/all-count-fr.svg)
* <code>untranslated_count</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/untranslated_count-fr.svg)
* <code>percent_translated</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/percent_translated-fr.svg)
* <code>waiting_count</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/waiting_count-fr.svg)
* <code>warnings_count</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/warnings_count-fr.svg)
* <code>fuzzy_count</code> ![image](https://ps.w.org/badge-for-glotpress/assets/examples/fuzzy_count-fr.svg)

**Example:**

* https://example.com/glotpress/badge/path/of/the/project/percent_translated-fr.svg

For basic URLs scheme, use this format:

* https://example.com/?gp_badge=true&project_path=the/project/path/&locale=fr&info=percent_translated

## Installation

1. Upload to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress admin

## Screenshots

1. Example badges

## Frequently asked questions

### Does it support pretty URLs

yes, just use `/glotpress/badge/{project_path}/{info}-{locale}.svg`


## Changelog

### 1.0.3

* Tested up to WP 7.0

### 1.0.2

* Tested up to WP 6.9
* Remove useless domain path
* Use markdown format for previews in readme

### 1.0.1

* Green color only if 100% translated
* Add plugin dependency: `glotpress`

### 1.0.0

* Plugin creation

## Upgrade notice

Not yet
