How to use class-specific variables in a function?

For one thing I want to keep the translate raw data in function intact because I didn't write it. Second then the method would have to return an array of over 17 entries. Thirdly I'm working with the end user in mind so I would like to keep the methods for referencing the button states in "English".

Also I'm looking for an answer to my question of how can I implement variables?

Specifically if I define an int or bool in the public or private how do I write to it in a method? What would I write?