All RPGs and Storygames by Tod Foley are now available at DrivethruRPG and RPGnow. Bring these games to your table!
A super quick blast from the past today; a Drupal 7 based article!
I had some work recently to create a new "setting" variable for one our Drupal 7 multilingual sites, which meant creating multilingual versions of those variables. I soon found out that there is very much a correct way - or order - to achieve this as I got this one very wrong (I had to re-instate my DB!). So here I am writing a very quick guide to help those from my wrong doings.
(This guide assumes you have a multilingual site setup with i18n's Variable translation module.)
Four simple steps to achieve a multilingual variable:
- Declare your new variables via hook_variable_info
The options you can set in this hook are well documented - start reading from the Variable module's project page.
- Flush the variable cache and get your new variables registered using an update hook. The meat of the update hook is below -- note that this assumes you want all all of the possibly-localizable variables to be made translatable:
- Create or alter your settings form (I'm assuming it uses system_settings_form() or is already recognised by the i18n/variable systems as a form containing translatable variables) and add your new form elements. Make sure the element(s) are the same as your newly created variable(s) - I use a $key variable to avoid any mistakes there!
Head over to /admin/config/regional/i18n/variable or your settings form to see your new multilingual variable in all it's glory!
The demand for Voice technology is rising and it is likely to revolutionize the way publishing websites engage with their audience. The Internet-connected virtual assistant is seeing a significant rise, but the question is how publishers can use this tech to grow their audience base and ultimately increase revenue? Here, we will explore how to use Actions on Google for a new project and an existing one followed up by an integration with Drupal 8 website.
Let’s have a look.Integrating Actions on Google with a device
Integrating Actions on Google with an electronic gadget or smart speakers allow us to trigger voice command to control various Drupal commands such as:
- Clearing cache
- Count number of node
This is a module to do the electronic billing for Costa Rican regulations only.
It solves the signature process, it lets us to create electronic documents and
send them to the verifications API, generates the XML documents,
email integrations, customer management, and taxes management.
----------------- PARA LOS TICOS ------------------
Desde el 15 de enero del 2018, todos los contribuyentes de Costa Rica, sean personas físicas o jurídicas, del sector salud deben utilizar de forma obligatoria comprobantes electrónicos como método de facturación, tal y como lo establece la resolución DGT-R-51-2016.
Con esto en mente ParallelDevs desarrolló este módulo como una Solución OpenSource para que cualquier empresa pueda montar su plataforma de facturación de manera gratuita o bien ofrecer ese servicio a sus clientes.
Si usted necesita alguna solución a la medida puede contactarnos a info[at]paralleldevs.com
You might have noticed that Wikipedia recently started enabling link previews; when you hover over a link, it displays a card with more information about the linked page.
My first reaction was: what took them so long? Link previews help to solve an important usability problem of having to open many articles, often in multiple browser tabs. However, after I started to read more about how Wikipedia implemented the link previews, I was reminded of how hard it is to do things at the scale Wikipedia requires.
Nirzar Pangarka, who works as a designer at the Wikimedia Foundation, shared that more than 10,000 links get hovered each second across Wikipedia. In another post, David Lyall, an engineering manager at the Wikimedia Foundation, shared that they are seeing up to half a million hits every minute on the API that serves the link preview cards.
I have a great appreciation for Wikipedia's seemingly straightforward link previews. Delivering a feature at this scale is an impressive achievement.
Contributing editor Katherine Cross celebrates the ways in which Blizzard's latest WoW expansion tells a tale of 'tragedy, diminishment, and the brutality of war without appearing wanton or childish.' ...
Language Code Formatter provides a way to display the internal language code of an entity by extending the Language field formatter. Normally, the Language field formatter outputs the pretty name of the language but sometimes you need the code.
Example: I want the language code inside of a view in order to create relative paths in another view text field with the correct langcode.