Coder Social home page Coder Social logo

exodusdevs / translation Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 79 KB

A translation library for your code from PocketMine-MP 4.0.0 or higher

Home Page: https://discord.com/invite/9NyEwxjd7w

License: GNU General Public License v3.0

PHP 100.00%
pm4 pmmp-4 pmmp-servers pmmp-virion pmmp-5

translation's Introduction

TranslationAPI

A translation library for your code from PocketMine-MP 4.0.0 or earlier

How to use it?

First you initialize the class, then use its methods

//$this = PluginBase class
$translation = new Translation($this);

First choose the default language to use if that language does not exist

//use class
use exodus\translation\Language;

//i will use the language of the USA
$translation->setDefaultLanguage(new Language("en_US", "English Language", ["welcome-message" => "%username% joined!!"]));

after this...

$translation->send($player, "welcome-message", ["username" => $player->getName()]);

this beautiful code xd

translation's People

Contributors

isrdxv avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar

translation's Issues

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.