This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | |
| <file source-language="en" datatype="plaintext" original="messages.ru.xliff" > | |
| <body> | |
| <trans-unit id="1"> | |
| <source>123</source> | |
| <target>ЫЫЫ</target> | |
| </trans-unit> | |
| </body> | |
| </file> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create catalogue | |
| $catalogue = new MessageCatalogue($input->getArgument('locale')); | |
| // load any messages from templates | |
| $output->writeln('Parsing templates'); | |
| $extractor = $this->getContainer()->get('translation.extractor'); | |
| $extractor->setPrefix($input->getOption('prefix')); | |
| $extractor->extract($foundBundle->getPath().'/Resources/views/', $catalogue); | |
| // load any existing messages from the translation files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| Locale.define('en-US', 'Messages', { | |
| 'user_add': 'Add User' | |
| }); | |
| Locale.define('en-US', 'Messages', { | |
| 'user.delete': 'Delete User' | |
| }); | |
| locale.get('Messages.user_add'); // Add User | |
| locale.get('Messages.user.delete'); // (пустая строка) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* @var \StepCart\PageBundle\Manager\PageManager $page_manager */ | |
| $page_manager = $this->container->get('page.manager'); | |
| $page_query = $page_manager->getPageQuery(); | |
| /* @var \StepCart\PageBundle\Model\Page $page */ | |
| $page = $page_query::create()->findOneByName('error' . $code); | |
| if ($page) | |
| { | |
| /* @var \Symfony\Bundle\FrameworkBundle\Routing\Router $router */ | |
| $router = $this->container->get('router'); | |
| $url = $router->generate('stepcart_page_page_urlkey', array('url_key' => $page->getUrlKey())); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var show_layout_url = router.getRoute('stepcart_designer_designer_show_layout'); | |
| var apply_layout_url = router.getRoute('stepcart_designer_designer_index_post'); | |
| var show_config_form_url = router.getRoute('stepcart_designer_designer_show_config_form'); | |
| var update_gadget_url_post = router.getRoute('stepcart_designer_designer_update_gadget_post'); | |
| var show_link_gadget_variants_url = router.getRoute('stepcart_designer_designer_show_link_gadget_variants'); | |
| var show_link_block_variants_url = router.getRoute('stepcart_designer_designer_show_link_block_variants'); | |
| var stepcart_action_delete = "{{ 'stepcart.action.delete'|trans }}"; | |
| var create_preset_url = router.getRoute('stepcart_designer_designer_create_preset'); | |
| var delete_preset_url = router.getRoute('stepcart_designer_designer_delete_preset'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var DynamicAction = new Class({ | |
| ... | |
| options: { | |
| ... | |
| 'onSubmit' : function(){ return true }, // Что мы хотели тут проверять? | |
| ... | |
| }, | |
| ... | |
| bind: function(){ | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Описание класса AdminItem и обязательная базовая инициализация экземпляра AdminItem | |
| */ | |
| !function (StepCartClass, SC) { | |
| var AdminItem = window.AdminItem = new Class({ | |
| Implements: [ Options, Class.Singleton ], | |
| options: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Admin = new Class({ | |
| Implements: [ Options, Events, Class.Singleton ], | |
| initialize: function() { | |
| console.log('Admin', this.check()); | |
| } | |
| }); | |
| var admin = new Admin(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 15fd729d5a2cc69120c | |
| Merge: e1b551d f9434fd | |
| Author: Stanislav Butsenko | |
| Date: Thu Nov 22 11:37:57 | |
| Merge branch 'stage' into translator | |
| > можно ли как-то объединить эти коммиты так, вроде я сначала сделал pull | |
| > и только после этого внес изменения? А то как-то не симпатично получается. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $builder->add('addresses', 'collection', array( | |
| 'type' => new AddressType(), | |
| 'allow_delete' => false, | |
| 'by_reference' => false | |
| )); | |
| $builder->add('billing_address', new AddressType(), array( | |
| 'address' => $this->getBillingAddress($user, $session) | |
| )); |