Giter VIP home page Giter VIP logo

brazabr / gp-github-source-url Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

GlotPress is shipped with support to link source files to Trac urls (based on SVN). This plugin implements support GitHub link to source files. If the Source File template url is from GitHub, it will remove the SVN prefix that contains the repo slug and the branch. This will create valid links to source files to your GitHub repository.

License: GNU General Public License v2.0

JavaScript 62.94% PHP 37.06%

gp-github-source-url's Introduction

=== GP Github Source Url ===
Contributors:      brazabr
Donate link:       https://github.com/brazabr/gp-github-source-url
Tags:              glotpress, github, link, translate, translation, source, url
Requires at least: 4.4
Tested up to:      4.7
Stable tag:        0.1.0
License:           GPLv2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html

Modifies GlotPress to make source urls compatible with Github

== Description ==

GlotPress is shipped with support to link source files to Trac urls (based on SVN).
This plugin implements support GitHub link to source files.

If the Source File template url is from GitHub, it will remove the SVN prefix that contains the repo slug and the branch. This will create valid links to source files to your GitHub repository.

== Installation ==

= Manual Installation =

1. Upload the entire `/gp-github-source-url` directory to the `/wp-content/plugins/` directory.
2. Activate GP Github Source Url through the 'Plugins' menu in WordPress.

== Frequently Asked Questions ==

= Who needs this plugin? =

If you have your own installation running GlotPress and one of your source files repository is hosted in GitHub, this plugin is for you.

= What does this plugin do? =

It changes the link to translation string in the source files in a way that, if the source files are hosted in GitHub, the url of the source file is modified and becomes a valid GitHub url.

= What do I need to do after installing the plugin? =

This plugin doesn't have extra settings to be modified via `wp-admin`. All you need to do is to define the url template in your GlotPress project and/or subproject to something like: `https://github.com/user/repo/%file%#L%line%`.

= Does it work with a repository that contains multiple branches? =

Yes. It will add the branch to the url automatically.

== Screenshots ==


== Changelog ==

= 0.1.0 =
* First release

== Upgrade Notice ==

= 0.1.0 =
First Release

gp-github-source-url's People

Contributors

brazabr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.