And if you wish to localize strings included in a javascript ( .js) file, it is there.
Y si quiere traducir también las posibles cadenas incluidas en el archivo javascript (.js), it puede verlo aquí.
In JavaScript, this method is called automatically when a function the selection object is passed to requires a string
En JavaScript, este método es llamado automáticamente cuando una función, a la cual es pasado como parámetro el objeto de selección, requiere una cadena de caracteres (texto)
It is difficult to inject arbitrary values into JavaScript using this technique. But in a particularly clever move, the report demonstrated that arbitrary strings could be injected, and one of these was enough to trick the extension into thinking it was executing on.
Con esta técnica resulta complicado introducir valores arbitrarios en JavaScript, pero gracias a una interesante línea de análisis el informe demostró la posibilidad de incrustar cadenas arbitrarias, y con una bastó para engañar a la extensión y hacerle creer que se estaba ejecutando en.
Please, note that all these parameters are returned in the form of Java strings, and as a general rule it is safer to convert them into JavaScript strings before using them within the function.
Ten en cuenta que todos estos parámetros se devuelven en forma de texto Java, y en general es más seguro convertirlos a texto JavaScript antes de usarlos en la función.
Dave Reed discovered that some Unicode byte order marks are stripped from Javascript code before execution, which can result in code being executed, which were otherwise part of a quoted string.
Dave Reed descubrió que algunas marcas de orden de byte en Unicode se eliminan del código Javascript antes de ser ejecutadas, lo que puede llevar a la ejecución de código que normalmente forma parte de una cadena entre comillas.
In PHP and JavaScript, eval() is a function that evaluates a string and returns the result.
En PHP y JavaScript, eval() es una función que evalúa una cadena y devuelve el resultado.
With the preceding code in place, any time theDog is used in a string context, JavaScript automatically calls the dogToString() function, which returns the following string
Con el código precedente en su lugar, cualquier vez que se use elDog en un contexto de una cadena, JavaScript automáticamente llamará a la función perroToString, la cuál devuelve la siguiente cadena
Each record has a value, which could include anything that can be expressed in JavaScript, including: boolean, number, string, date, object, array, regexp, undefined, and null.
Cada registro tiene un valor, el cual puede ser cualquier cosa que pueda ser expresada en JavaScript, incluyendo: booleanos, números, cadenas, fechas, objetos, arreglos, expresiones regulares, undefined, y null.
Plugins and themes have been able to easily translate PHP strings for years now, and a similar method is also available for translating strings in JavaScript thanks to the wp.i18n object.
Los complementos y los temas han podido traducir cadenas de PHP fácilmente desde hace años, y también hay un método similar para traducir cadenas en JavaScript gracias al objeto wp.i18n.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.